Lines Matching refs:CHECK_OK
301 #define CHECK_OK ok); \ macro
1146 Statement* stat = ParseStatementListItem(CHECK_OK); in ParseStatementList()
1327 Statement* stat = ParseModuleItem(CHECK_OK); in ParseModuleItemList()
1357 Expect(Token::STRING, CHECK_OK); in ParseModuleSpecifier()
1379 Expect(Token::LBRACE, CHECK_OK); in ParseExportClause()
1389 const AstRawString* local_name = ParseIdentifierName(CHECK_OK); in ParseExportClause()
1392 export_name = ParseIdentifierName(CHECK_OK); in ParseExportClause()
1401 Expect(Token::COMMA, CHECK_OK); in ParseExportClause()
1404 Expect(Token::RBRACE, CHECK_OK); in ParseExportClause()
1424 Expect(Token::LBRACE, CHECK_OK); in ParseNamedImports()
1429 const AstRawString* import_name = ParseIdentifierName(CHECK_OK); in ParseNamedImports()
1435 local_name = ParseIdentifierName(CHECK_OK); in ParseNamedImports()
1453 Declare(declaration, DeclarationDescriptor::NORMAL, true, CHECK_OK); in ParseNamedImports()
1456 Expect(Token::COMMA, CHECK_OK); in ParseNamedImports()
1459 Expect(Token::RBRACE, CHECK_OK); in ParseNamedImports()
1481 Expect(Token::IMPORT, CHECK_OK); in ParseImportDeclaration()
1487 const AstRawString* module_specifier = ParseModuleSpecifier(CHECK_OK); in ParseImportDeclaration()
1489 ExpectSemicolon(CHECK_OK); in ParseImportDeclaration()
1497 ParseIdentifier(kDontAllowRestrictedIdentifiers, CHECK_OK); in ParseImportDeclaration()
1502 CHECK_OK); in ParseImportDeclaration()
1511 ExpectContextualKeyword(CStrVector("as"), CHECK_OK); in ParseImportDeclaration()
1513 ParseIdentifier(kDontAllowRestrictedIdentifiers, CHECK_OK); in ParseImportDeclaration()
1519 named_declarations = ParseNamedImports(pos, CHECK_OK); in ParseImportDeclaration()
1529 ExpectContextualKeyword(CStrVector("from"), CHECK_OK); in ParseImportDeclaration()
1530 const AstRawString* module_specifier = ParseModuleSpecifier(CHECK_OK); in ParseImportDeclaration()
1547 ExpectSemicolon(CHECK_OK); in ParseImportDeclaration()
1558 Expect(Token::DEFAULT, CHECK_OK); in ParseExportDefault()
1566 result = ParseFunctionDeclaration(&names, CHECK_OK); in ParseExportDefault()
1571 result = ParseClassDeclaration(&names, CHECK_OK); in ParseExportDefault()
1577 Expression* expr = ParseAssignmentExpression(true, &classifier, CHECK_OK); in ParseExportDefault()
1578 expr = ParserTraits::RewriteNonPattern(expr, &classifier, CHECK_OK); in ParseExportDefault()
1580 ExpectSemicolon(CHECK_OK); in ParseExportDefault()
1614 Expect(Token::EXPORT, CHECK_OK); in ParseExportDeclaration()
1624 ExpectContextualKeyword(CStrVector("from"), CHECK_OK); in ParseExportDeclaration()
1625 const AstRawString* module_specifier = ParseModuleSpecifier(CHECK_OK); in ParseExportDeclaration()
1628 ExpectSemicolon(CHECK_OK); in ParseExportDeclaration()
1649 &reserved_loc, CHECK_OK); in ParseExportDeclaration()
1652 indirect_export_module_specifier = ParseModuleSpecifier(CHECK_OK); in ParseExportDeclaration()
1659 ExpectSemicolon(CHECK_OK); in ParseExportDeclaration()
1685 result = ParseFunctionDeclaration(&names, CHECK_OK); in ParseExportDeclaration()
1689 result = ParseClassDeclaration(&names, CHECK_OK); in ParseExportDeclaration()
1695 result = ParseVariableStatement(kStatementListItem, &names, CHECK_OK); in ParseExportDeclaration()
1798 Statement* statement = ParseStatementAsUnlabelled(labels, CHECK_OK); in ParseSubStatement()
2056 Expect(Token::FUNCTION, CHECK_OK); in ParseNativeDeclaration()
2059 ParseIdentifier(kAllowRestrictedIdentifiers, CHECK_OK); in ParseNativeDeclaration()
2060 Expect(Token::LPAREN, CHECK_OK); in ParseNativeDeclaration()
2063 ParseIdentifier(kAllowRestrictedIdentifiers, CHECK_OK); in ParseNativeDeclaration()
2066 Expect(Token::COMMA, CHECK_OK); in ParseNativeDeclaration()
2069 Expect(Token::RPAREN, CHECK_OK); in ParseNativeDeclaration()
2070 Expect(Token::SEMICOLON, CHECK_OK); in ParseNativeDeclaration()
2085 Declare(declaration, DeclarationDescriptor::NORMAL, true, CHECK_OK); in ParseNativeDeclaration()
2101 Expect(Token::FUNCTION, CHECK_OK); in ParseFunctionDeclaration()
2106 &is_strict_reserved, CHECK_OK); in ParseFunctionDeclaration()
2117 language_mode(), CHECK_OK); in ParseFunctionDeclaration()
2134 Declare(declaration, DeclarationDescriptor::NORMAL, true, CHECK_OK); in ParseFunctionDeclaration()
2164 Expect(Token::CLASS, CHECK_OK); in ParseClassDeclaration()
2174 ParseIdentifierOrStrictReservedWord(&is_strict_reserved, CHECK_OK); in ParseClassDeclaration()
2176 is_strict_reserved, pos, CHECK_OK); in ParseClassDeclaration()
2185 Declare(declaration, DeclarationDescriptor::NORMAL, true, CHECK_OK); in ParseClassDeclaration()
2226 Expect(Token::LBRACE, CHECK_OK); in ParseBlock()
2232 Statement* stat = ParseStatementListItem(CHECK_OK); in ParseBlock()
2238 Expect(Token::RBRACE, CHECK_OK); in ParseBlock()
2259 result, &descriptor, &declaration, names, CHECK_OK); in BuildInitializationBlock()
2284 ParseVariableDeclarations(var_context, &parsing_result, CHECK_OK); in ParseVariableStatement()
2285 ExpectSemicolon(CHECK_OK); in ParseVariableStatement()
2287 Block* result = parsing_result.BuildInitializationBlock(names, CHECK_OK); in ParseVariableStatement()
2516 expr = ParseStrongInitializationExpression(&classifier, CHECK_OK); in ParseExpressionOrLabelledStatement()
2518 expr = ParseStrongSuperCallExpression(&classifier, CHECK_OK); in ParseExpressionOrLabelledStatement()
2520 expr = ParserTraits::RewriteNonPattern(expr, &classifier, CHECK_OK); in ParseExpressionOrLabelledStatement()
2547 Expression* expr = ParseExpression(true, CHECK_OK); in ParseExpressionOrLabelledStatement()
2573 Expect(Token::COLON, CHECK_OK); in ParseExpressionOrLabelledStatement()
2599 ExpectSemicolon(CHECK_OK); in ParseExpressionOrLabelledStatement()
2610 Expect(Token::IF, CHECK_OK); in ParseIfStatement()
2611 Expect(Token::LPAREN, CHECK_OK); in ParseIfStatement()
2612 Expression* condition = ParseExpression(true, CHECK_OK); in ParseIfStatement()
2613 Expect(Token::RPAREN, CHECK_OK); in ParseIfStatement()
2614 Statement* then_statement = ParseSubStatement(labels, CHECK_OK); in ParseIfStatement()
2618 else_statement = ParseSubStatement(labels, CHECK_OK); in ParseIfStatement()
2632 Expect(Token::CONTINUE, CHECK_OK); in ParseContinueStatement()
2638 label = ParseIdentifier(kAllowRestrictedIdentifiers, CHECK_OK); in ParseContinueStatement()
2640 IterationStatement* target = LookupContinueTarget(label, CHECK_OK); in ParseContinueStatement()
2651 ExpectSemicolon(CHECK_OK); in ParseContinueStatement()
2662 Expect(Token::BREAK, CHECK_OK); in ParseBreakStatement()
2668 label = ParseIdentifier(kAllowRestrictedIdentifiers, CHECK_OK); in ParseBreakStatement()
2673 ExpectSemicolon(CHECK_OK); in ParseBreakStatement()
2677 target = LookupBreakTarget(label, CHECK_OK); in ParseBreakStatement()
2688 ExpectSemicolon(CHECK_OK); in ParseBreakStatement()
2700 Expect(Token::RETURN, CHECK_OK); in ParseReturnStatement()
2727 return_value = ParseExpression(true, CHECK_OK); in ParseReturnStatement()
2773 ExpectSemicolon(CHECK_OK); in ParseReturnStatement()
2800 Expect(Token::WITH, CHECK_OK); in ParseWithStatement()
2809 Expect(Token::LPAREN, CHECK_OK); in ParseWithStatement()
2810 Expression* expr = ParseExpression(true, CHECK_OK); in ParseWithStatement()
2811 Expect(Token::RPAREN, CHECK_OK); in ParseWithStatement()
2827 Statement* stmt = ParseSubStatement(labels, CHECK_OK); in ParseWithStatement()
2847 Expect(Token::CASE, CHECK_OK); in ParseCaseClause()
2848 label = ParseExpression(true, CHECK_OK); in ParseCaseClause()
2850 Expect(Token::DEFAULT, CHECK_OK); in ParseCaseClause()
2858 Expect(Token::COLON, CHECK_OK); in ParseCaseClause()
2866 stat = ParseStatementListItem(CHECK_OK); in ParseCaseClause()
2898 Expect(Token::SWITCH, CHECK_OK); in ParseSwitchStatement()
2899 Expect(Token::LPAREN, CHECK_OK); in ParseSwitchStatement()
2900 Expression* tag = ParseExpression(true, CHECK_OK); in ParseSwitchStatement()
2901 Expect(Token::RPAREN, CHECK_OK); in ParseSwitchStatement()
2939 Expect(Token::LBRACE, CHECK_OK); in ParseSwitchStatement()
2941 CaseClause* clause = ParseCaseClause(&default_seen, CHECK_OK); in ParseSwitchStatement()
2947 Expect(Token::RBRACE, CHECK_OK); in ParseSwitchStatement()
2963 Expect(Token::THROW, CHECK_OK); in ParseThrowStatement()
2970 Expression* exception = ParseExpression(true, CHECK_OK); in ParseThrowStatement()
2971 ExpectSemicolon(CHECK_OK); in ParseThrowStatement()
2990 Expect(Token::TRY, CHECK_OK); in ParseTryStatement()
2993 Block* try_block = ParseBlock(NULL, CHECK_OK); in ParseTryStatement()
3008 Expect(Token::LPAREN, CHECK_OK); in ParseTryStatement()
3013 Expression* pattern = ParsePrimaryExpression(&pattern_classifier, CHECK_OK); in ParseTryStatement()
3014 ValidateBindingPattern(&pattern_classifier, CHECK_OK); in ParseTryStatement()
3027 Expect(Token::RPAREN, CHECK_OK); in ParseTryStatement()
3059 catch_block, &descriptor, &decl, nullptr, CHECK_OK); in ParseTryStatement()
3062 Expect(Token::LBRACE, CHECK_OK); in ParseTryStatement()
3064 Statement* stat = ParseStatementListItem(CHECK_OK); in ParseTryStatement()
3084 finally_block = ParseBlock(NULL, CHECK_OK); in ParseTryStatement()
3127 Expect(Token::DO, CHECK_OK); in ParseDoWhileStatement()
3128 Statement* body = ParseSubStatement(NULL, CHECK_OK); in ParseDoWhileStatement()
3129 Expect(Token::WHILE, CHECK_OK); in ParseDoWhileStatement()
3130 Expect(Token::LPAREN, CHECK_OK); in ParseDoWhileStatement()
3132 Expression* cond = ParseExpression(true, CHECK_OK); in ParseDoWhileStatement()
3133 Expect(Token::RPAREN, CHECK_OK); in ParseDoWhileStatement()
3154 Expect(Token::WHILE, CHECK_OK); in ParseWhileStatement()
3155 Expect(Token::LPAREN, CHECK_OK); in ParseWhileStatement()
3156 Expression* cond = ParseExpression(true, CHECK_OK); in ParseWhileStatement()
3157 Expect(Token::RPAREN, CHECK_OK); in ParseWhileStatement()
3158 Statement* body = ParseSubStatement(NULL, CHECK_OK); in ParseWhileStatement()
3403 Declare(declaration, DeclarationDescriptor::NORMAL, true, CHECK_OK); in DesugarLexicalBindingsInForStatement()
3551 Expect(Token::FOR, CHECK_OK); in ParseForStatement()
3552 Expect(Token::LPAREN, CHECK_OK); in ParseForStatement()
3559 ParseVariableDeclarations(kForStatement, &parsing_result, CHECK_OK); in ParseForStatement()
3639 Expression* enumerable = ParseExpression(true, CHECK_OK); in ParseForStatement()
3641 Expect(Token::RPAREN, CHECK_OK); in ParseForStatement()
3647 Statement* body = ParseSubStatement(NULL, CHECK_OK); in ParseForStatement()
3664 CHECK_OK); in ParseForStatement()
3695 true, CHECK_OK); in ParseForStatement()
3719 CHECK_OK); in ParseForStatement()
3724 Expression* expression = ParseExpression(false, &classifier, CHECK_OK); in ParseForStatement()
3739 ValidateAssignmentPattern(&classifier, CHECK_OK); in ParseForStatement()
3742 ParserTraits::RewriteNonPattern(expression, &classifier, CHECK_OK); in ParseForStatement()
3749 MessageTemplate::kInvalidLhsInFor, kSyntaxError, CHECK_OK); in ParseForStatement()
3756 Expression* enumerable = ParseExpression(true, CHECK_OK); in ParseForStatement()
3757 Expect(Token::RPAREN, CHECK_OK); in ParseForStatement()
3769 Statement* body = ParseSubStatement(NULL, CHECK_OK); in ParseForStatement()
3803 Expect(Token::SEMICOLON, CHECK_OK); in ParseForStatement()
3816 cond = ParseExpression(true, CHECK_OK); in ParseForStatement()
3818 Expect(Token::SEMICOLON, CHECK_OK); in ParseForStatement()
3822 Expression* exp = ParseExpression(true, CHECK_OK); in ParseForStatement()
3825 Expect(Token::RPAREN, CHECK_OK); in ParseForStatement()
3827 Statement* body = ParseSubStatement(NULL, CHECK_OK); in ParseForStatement()
3834 next, body, CHECK_OK); in ParseForStatement()
3886 Expect(Token::DEBUGGER, CHECK_OK); in ParseDebuggerStatement()
3887 ExpectSemicolon(CHECK_OK); in ParseDebuggerStatement()
4015 Expect(Token::DO, CHECK_OK); in ParseDoExpression()
4018 Block* block = ParseBlock(nullptr, false, CHECK_OK); in ParseDoExpression()
4166 Expect(Token::LPAREN, CHECK_OK); in ParseFunctionLiteral()
4170 ParseFormalParameterList(&formals, &formals_classifier, CHECK_OK); in ParseFunctionLiteral()
4172 Expect(Token::RPAREN, CHECK_OK); in ParseFunctionLiteral()
4177 formals_end_position, CHECK_OK); in ParseFunctionLiteral()
4178 Expect(Token::LBRACE, CHECK_OK); in ParseFunctionLiteral()
4275 function_type, CHECK_OK); in ParseFunctionLiteral()
4302 function_name_location, CHECK_OK); in ParseFunctionLiteral()
4306 allow_duplicate_parameters, CHECK_OK); in ParseFunctionLiteral()
4310 CHECK_OK); in ParseFunctionLiteral()
4313 InsertSloppyBlockFunctionVarBindings(scope, CHECK_OK); in ParseFunctionLiteral()
4317 CheckConflictingVarDeclarations(scope, CHECK_OK); in ParseFunctionLiteral()
4549 &decl, nullptr, CHECK_OK); in BuildParameterInitializationBlock()
4555 CheckConflictingVarDeclarations(param_scope, CHECK_OK); in BuildParameterInitializationBlock()
4618 ParseStatementList(body, Token::RBRACE, CHECK_OK); in ParseEagerFunctionBody()
4640 Expect(Token::RBRACE, CHECK_OK); in ParseEagerFunctionBody()
4647 Block* init_block = BuildParameterInitializationBlock(parameters, CHECK_OK); in ParseEagerFunctionBody()
4653 CheckConflictingVarDeclarations(inner_scope, CHECK_OK); in ParseEagerFunctionBody()
4758 Declare(declaration, DeclarationDescriptor::NORMAL, true, CHECK_OK); in ParseClassLiteral()
4765 extends = ParseLeftHandSideExpression(&classifier, CHECK_OK); in ParseClassLiteral()
4766 extends = ParserTraits::RewriteNonPattern(extends, &classifier, CHECK_OK); in ParseClassLiteral()
4777 Expect(Token::LBRACE, CHECK_OK); in ParseClassLiteral()
4791 &has_seen_constructor, &classifier, &name, CHECK_OK); in ParseClassLiteral()
4793 property, &classifier, CHECK_OK); in ParseClassLiteral()
4809 Expect(Token::RBRACE, CHECK_OK); in ParseClassLiteral()
4836 Expect(Token::MOD, CHECK_OK); in ParseV8Intrinsic()
4839 CHECK_OK); in ParseV8Intrinsic()
4843 ParseArguments(&spread_pos, &classifier, CHECK_OK); in ParseV8Intrinsic()
4844 args = RewriteNonPatternArguments(args, &classifier, CHECK_OK); in ParseV8Intrinsic()