Lines Matching refs:ThrowSyntaxError
158 ThrowSyntaxError("'With' is deprecated and not supported any more."); in ParseStatement()
182 ThrowSyntaxError("Lexical declaration is not allowed in single statement context"); in ParseLetStatement()
193 ThrowSyntaxError("Lexical declaration is not allowed in single statement context"); in ParseConstStatement()
251 ThrowSyntaxError("Illegal start of expression", Lexer()->GetToken().Start()); in ParseStructStatement()
260 ThrowSyntaxError("Lexical declaration is not allowed in single statement context"); in ParseClassStatement()
276 ThrowSyntaxError("struct declaration is not allowed to use 'abstract' modifiers."); in ParseStructDeclaration()
282 ThrowSyntaxError("struct declaration cannot extends form other class"); in ParseStructDeclaration()
310 ThrowSyntaxError( in CheckFunctionDeclaration()
319 ThrowSyntaxError("Lexical declaration is not allowed in single statement context"); in CheckFunctionDeclaration()
323 ThrowSyntaxError("Generators can only be declared at the top level or inside a block"); in CheckFunctionDeclaration()
339 ThrowSyntaxError("Unexpected token"); in ConsumeSemicolon()
368 ThrowSyntaxError( in ParseDirective()
410 ThrowSyntaxError("Expected a '}'"); in ParseBlockStatement()
424 ThrowSyntaxError("Illegal break statement"); in ThrowIllegalBreakError()
454 ThrowSyntaxError("Unexpected token."); in ParseBreakStatement()
460 ThrowSyntaxError("Undefined label"); in ParseBreakStatement()
477 ThrowSyntaxError("Illegal continue statement"); in ThrowIllegalContinueError()
508 ThrowSyntaxError("Unexpected token."); in ParseContinueStatement()
515 ThrowSyntaxError("Undefined label"); in ParseContinueStatement()
539 ThrowSyntaxError("Missing 'while' keyword in a 'DoWhileStatement'"); in ParseDoWhileStatement()
544 ThrowSyntaxError("Missing left parenthesis in a 'DoWhileStatement'"); in ParseDoWhileStatement()
552 ThrowSyntaxError("Missing right parenthesis in a 'DoWhileStatement'"); in ParseDoWhileStatement()
594 ThrowSyntaxError("Unexpected token, expected identifier after 'function' keyword"); in ParseFunctionDeclaration()
625 ThrowSyntaxError("Lexical declaration is not allowed in single statement context"); in ParseExpressionStatement()
670 ThrowSyntaxError("for-in loop variable declaration may not have an initializer"); in ParseForInOf()
677 ThrowSyntaxError("for-of loop variable declaration may not have an initializer"); in ParseForInOf()
687 ThrowSyntaxError("Unexpected token"); in ParseForInOf()
691 ThrowSyntaxError("Invalid left-hand side in 'For[In/Of]Statement'"); in ParseForInOf()
697 ThrowSyntaxError("Unexpected token, expected ';' in 'ForStatement'."); in ParseForInOf()
758 ThrowSyntaxError("Unexpected token"); in ParseForInOf()
774 ThrowSyntaxError("Invalid left-hand side in for-in statement"); in ParseForInOf()
780 ThrowSyntaxError("Invalid left-hand side in 'For[In/Of]Statement'"); in ParseForInOf()
784 ThrowSyntaxError("Unexpected token, expected ';' in 'ForStatement'."); in ParseForInOf()
795 ThrowSyntaxError("Unexpected token, expected ';' in 'ForStatement'."); in ParseForInOf()
810 ThrowSyntaxError("Unexpected token"); in ParseForUpdate()
821 ThrowSyntaxError("Unexpected token, expected ';' in 'ForStatement'."); in ParseForUpdate()
854 ThrowSyntaxError(MISSING_LEFT_IN_FOR, lexer_->GetToken().Start()); in ParseForStatement()
892 ThrowSyntaxError(UNEXPECTED_TOKEN, lexer_->GetToken().Start()); in ParseForStatement()
912 …ThrowSyntaxError(INVALID_LEFT_HAND_IN_FOR_OF, initNode->AsVariableDeclaration()->Declarators()[1]-… in ParseForStatement()
922 ThrowSyntaxError(INVALID_TYPE_ANNOTATION_IN_FOR, lexer_->GetToken().Start()); in ParseForStatement()
934 ThrowSyntaxError(MISSING_RIGHT_IN_FOR, lexer_->GetToken().Start()); in ParseForStatement()
965 ThrowSyntaxError("Missing left parenthesis in an 'IfStatement'"); in ParseIfStatement()
972 ThrowSyntaxError("Missing right parenthesis in an 'IfStatement'"); in ParseIfStatement()
999 ThrowSyntaxError("'await' is a reserved identifier in module code", pos.GetToken().Start()); in ParseLabelledStatement()
1003 ThrowSyntaxError("Label already declared", pos.GetToken().Start()); in ParseLabelledStatement()
1026 ThrowSyntaxError("return keyword should be used in function body"); in ParseReturnStatement()
1056 ThrowSyntaxError("Multiple default clauses."); in ThrowMultipleDefaultError()
1079 ThrowSyntaxError("Unexpected token, expected 'case' or 'default'."); in ParseSwitchCaseStatement()
1084 ThrowSyntaxError("Unexpected token, expected ':'"); in ParseSwitchCaseStatement()
1110 ThrowSyntaxError("Unexpected token, expected '('"); in ParseSwitchStatement()
1117 ThrowSyntaxError("Unexpected token, expected ')'"); in ParseSwitchStatement()
1124 ThrowSyntaxError("Unexpected token, expected '{'"); in ParseSwitchStatement()
1145 ThrowSyntaxError("Illegal newline after throw"); in ThrowIllegalNewLineErrorAfterThrow()
1187 ThrowSyntaxError("Unexpected token in catch parameter"); in ParseCatchParam()
1193 ThrowSyntaxError("Unexpected token, expected ')'"); in ParseCatchParam()
1209 ThrowSyntaxError("Unexpected token, expected '{'"); in ParseCatchClause()
1229 ThrowSyntaxError("Unexpected token, expected '{'"); in ParseTryStatement()
1236 ThrowSyntaxError("Missing catch or finally clause"); in ParseTryStatement()
1253 ThrowSyntaxError("Unexpected token, expected '{'"); in ParseTryStatement()
1280 ThrowSyntaxError("for-await-of loop variable declaration may not have an initializer"); in ParseVariableDeclaratorInitializer()
1286 ThrowSyntaxError("Initializers are not allowed in ambient contexts."); in ParseVariableDeclaratorInitializer()
1319 ThrowSyntaxError("Unexpected token in variable declaration"); in ParseVariableDeclaratorKey()
1347 ThrowSyntaxError("Missing initializer in const declaration"); in ParseVariableDeclarator()
1351 ThrowSyntaxError("Missing initializer in destructuring declaration"); in ParseVariableDeclarator()
1372 ThrowSyntaxError("Variable declaration expected."); in ParsePotentialConstEnum()
1425 ThrowSyntaxError("Unexpected token, expected '('"); in ParseWhileStatement()
1432 ThrowSyntaxError("Unexpected token, expected ')'"); in ParseWhileStatement()
1509 ThrowSyntaxError("Unexpected token, expected an identifier."); in ParseNamedExport()
1553 ThrowSyntaxError("Unexpected token"); in ParseExportNamedSpecifiers()
1632 ThrowSyntaxError("Unexpected token"); in ParseNamedExportDeclaration()
1655 ThrowSyntaxError("'import' and 'export' may only appear at the top level"); in ParseExportDeclaration()
1659 ThrowSyntaxError("'import' and 'export' may appear only with 'sourceType: module'"); in ParseExportDeclaration()
1687 ThrowSyntaxError("Unexpected token."); in ParseNameSpaceImport()
1704 ThrowSyntaxError("Unexpected token"); in ParseNamedImport()
1721 ThrowSyntaxError("Unexpected token"); in ParseNamedImportSpecifiers()
1773 ThrowSyntaxError("Unexpected token."); in ParseFromClause()
1780 ThrowSyntaxError("Unexpected token."); in ParseFromClause()
1816 ThrowSyntaxError("'import' and 'export' may only appear at the top level"); in ParseImportDeclaration()
1820 ThrowSyntaxError("'import' and 'export' may appear only with 'sourceType: module'"); in ParseImportDeclaration()