Lines Matching refs:CHECK_OK
516 // The CHECK_OK macro is a convenient macro to enforce error
523 #define CHECK_OK ok); \
868 stat = ParseModuleElement(NULL, CHECK_OK);
870 stat = ParseBlockElement(NULL, CHECK_OK);
951 Statement* stmt = ParseStatement(labels, CHECK_OK);
976 Handle<String> name = ParseIdentifier(CHECK_OK);
983 Module* module = ParseModule(CHECK_OK);
987 Declare(declaration, true, CHECK_OK);
1018 Expect(Token::ASSIGN, CHECK_OK);
1019 Module* result = ParseModulePath(CHECK_OK);
1020 CHECK_OK);
1025 ExpectContextualKeyword(CStrVector("at"), CHECK_OK);
1026 Module* result = ParseModuleUrl(CHECK_OK);
1027 ExpectSemicolon(CHECK_OK);
1045 Expect(Token::LBRACE, CHECK_OK);
1056 Statement* stat = ParseModuleElement(NULL, CHECK_OK);
1063 Expect(Token::RBRACE, CHECK_OK);
1093 Module* result = ParseModuleVariable(CHECK_OK);
1095 Handle<String> name = ParseIdentifierName(CHECK_OK);
1126 Handle<String> name = ParseIdentifier(CHECK_OK);
1143 Expect(Token::STRING, CHECK_OK);
1186 Expect(Token::IMPORT, CHECK_OK);
1189 Handle<String> name = ParseIdentifierName(CHECK_OK);
1193 name = ParseIdentifierName(CHECK_OK);
1197 ExpectContextualKeyword(CStrVector("from"), CHECK_OK);
1198 Module* module = ParseModuleSpecifier(CHECK_OK);
1199 ExpectSemicolon(CHECK_OK);
1225 Declare(declaration, true, CHECK_OK);
1242 Expect(Token::EXPORT, CHECK_OK);
1248 Handle<String> name = ParseIdentifier(CHECK_OK);
1254 name = ParseIdentifier(CHECK_OK);
1257 ExpectSemicolon(CHECK_OK);
1260 result = ParseModuleDeclaration(&names, CHECK_OK);
1266 result = ParseFunctionDeclaration(&names, CHECK_OK);
1272 result = ParseVariableStatement(kModuleElement, &names, CHECK_OK);
1289 interface->Add(names[i], inner, zone(), CHECK_OK);
1421 TryStatement* statement = ParseTryStatement(CHECK_OK);
1639 Expect(Token::FUNCTION, CHECK_OK);
1640 Handle<String> name = ParseIdentifier(CHECK_OK);
1641 Expect(Token::LPAREN, CHECK_OK);
1644 ParseIdentifier(CHECK_OK);
1647 Expect(Token::COMMA, CHECK_OK);
1650 Expect(Token::RPAREN, CHECK_OK);
1651 Expect(Token::SEMICOLON, CHECK_OK);
1686 Declare(declaration, true, CHECK_OK);
1701 Expect(Token::FUNCTION, CHECK_OK);
1706 &is_strict_reserved, CHECK_OK);
1712 CHECK_OK);
1723 Declare(declaration, true, CHECK_OK);
1741 Expect(Token::LBRACE, CHECK_OK);
1743 Statement* stat = ParseStatement(NULL, CHECK_OK);
1748 Expect(Token::RBRACE, CHECK_OK);
1764 Expect(Token::LBRACE, CHECK_OK);
1772 Statement* stat = ParseBlockElement(NULL, CHECK_OK);
1778 Expect(Token::RBRACE, CHECK_OK);
1794 ParseVariableDeclarations(var_context, NULL, names, &ignore, CHECK_OK);
1795 ExpectSemicolon(CHECK_OK);
1923 name = ParseIdentifier(CHECK_OK);
1953 Declare(declaration, mode != VAR, CHECK_OK);
1995 Expect(Token::ASSIGN, CHECK_OK);
1997 value = ParseAssignmentExpression(var_context != kForStatement, CHECK_OK);
2149 Expression* expr = ParseExpression(true, CHECK_OK);
2178 Expect(Token::COLON, CHECK_OK);
2205 ExpectSemicolon(CHECK_OK);
2215 Expect(Token::IF, CHECK_OK);
2216 Expect(Token::LPAREN, CHECK_OK);
2217 Expression* condition = ParseExpression(true, CHECK_OK);
2218 Expect(Token::RPAREN, CHECK_OK);
2219 Statement* then_statement = ParseStatement(labels, CHECK_OK);
2223 else_statement = ParseStatement(labels, CHECK_OK);
2235 Expect(Token::CONTINUE, CHECK_OK);
2240 label = ParseIdentifier(CHECK_OK);
2243 target = LookupContinueTarget(label, CHECK_OK);
2256 ExpectSemicolon(CHECK_OK);
2265 Expect(Token::BREAK, CHECK_OK);
2270 label = ParseIdentifier(CHECK_OK);
2275 ExpectSemicolon(CHECK_OK);
2279 target = LookupBreakTarget(label, CHECK_OK);
2292 ExpectSemicolon(CHECK_OK);
2304 Expect(Token::RETURN, CHECK_OK);
2315 return_value = ParseExpression(true, CHECK_OK);
2317 ExpectSemicolon(CHECK_OK);
2349 Expect(Token::WITH, CHECK_OK);
2357 Expect(Token::LPAREN, CHECK_OK);
2358 Expression* expr = ParseExpression(true, CHECK_OK);
2359 Expect(Token::RPAREN, CHECK_OK);
2366 stmt = ParseStatement(labels, CHECK_OK);
2380 Expect(Token::CASE, CHECK_OK);
2381 label = ParseExpression(true, CHECK_OK);
2383 Expect(Token::DEFAULT, CHECK_OK);
2392 Expect(Token::COLON, CHECK_OK);
2399 Statement* stat = ParseStatement(NULL, CHECK_OK);
2415 Expect(Token::SWITCH, CHECK_OK);
2416 Expect(Token::LPAREN, CHECK_OK);
2417 Expression* tag = ParseExpression(true, CHECK_OK);
2418 Expect(Token::RPAREN, CHECK_OK);
2422 Expect(Token::LBRACE, CHECK_OK);
2424 CaseClause* clause = ParseCaseClause(&default_seen, CHECK_OK);
2427 Expect(Token::RBRACE, CHECK_OK);
2438 Expect(Token::THROW, CHECK_OK);
2445 Expression* exception = ParseExpression(true, CHECK_OK);
2446 ExpectSemicolon(CHECK_OK);
2464 Expect(Token::TRY, CHECK_OK);
2470 try_block = ParseBlock(NULL, CHECK_OK);
2492 Expect(Token::LPAREN, CHECK_OK);
2495 name = ParseIdentifier(CHECK_OK);
2503 Expect(Token::RPAREN, CHECK_OK);
2512 catch_block = ParseBlock(NULL, CHECK_OK);
2514 Expect(Token::LBRACE, CHECK_OK);
2523 finally_block = ParseBlock(NULL, CHECK_OK);
2571 Expect(Token::DO, CHECK_OK);
2572 Statement* body = ParseStatement(NULL, CHECK_OK);
2573 Expect(Token::WHILE, CHECK_OK);
2574 Expect(Token::LPAREN, CHECK_OK);
2581 Expression* cond = ParseExpression(true, CHECK_OK);
2582 Expect(Token::RPAREN, CHECK_OK);
2602 Expect(Token::WHILE, CHECK_OK);
2603 Expect(Token::LPAREN, CHECK_OK);
2604 Expression* cond = ParseExpression(true, CHECK_OK);
2605 Expect(Token::RPAREN, CHECK_OK);
2606 Statement* body = ParseStatement(NULL, CHECK_OK);
2710 Expect(Token::FOR, CHECK_OK);
2711 Expect(Token::LPAREN, CHECK_OK);
2720 CHECK_OK);
2730 Expression* enumerable = ParseExpression(true, CHECK_OK);
2731 Expect(Token::RPAREN, CHECK_OK);
2735 Statement* body = ParseStatement(NULL, CHECK_OK);
2754 CHECK_OK);
2786 Expression* enumerable = ParseExpression(true, CHECK_OK);
2788 Expect(Token::RPAREN, CHECK_OK);
2792 Statement* body = ParseStatement(NULL, CHECK_OK);
2813 Expression* expression = ParseExpression(false, CHECK_OK);
2830 Expression* enumerable = ParseExpression(true, CHECK_OK);
2831 Expect(Token::RPAREN, CHECK_OK);
2833 Statement* body = ParseStatement(NULL, CHECK_OK);
2853 Expect(Token::SEMICOLON, CHECK_OK);
2857 cond = ParseExpression(true, CHECK_OK);
2859 Expect(Token::SEMICOLON, CHECK_OK);
2863 Expression* exp = ParseExpression(true, CHECK_OK);
2866 Expect(Token::RPAREN, CHECK_OK);
2868 Statement* body = ParseStatement(NULL, CHECK_OK);
2903 Expression* result = ParseAssignmentExpression(accept_IN, CHECK_OK);
2905 Expect(Token::COMMA, CHECK_OK);
2907 Expression* right = ParseAssignmentExpression(accept_IN, CHECK_OK);
2927 Expression* expression = ParseConditionalExpression(accept_IN, CHECK_OK);
2948 CheckStrictModeLValue(expression, "strict_lhs_assignment", CHECK_OK);
2954 Expression* right = ParseAssignmentExpression(accept_IN, CHECK_OK);
2998 Expect(Token::YIELD, CHECK_OK);
3003 Expression* expression = ParseAssignmentExpression(false, CHECK_OK);
3020 Expression* expression = ParseBinaryExpression(4, accept_IN, CHECK_OK);
3027 Expression* left = ParseAssignmentExpression(true, CHECK_OK);
3028 Expect(Token::COLON, CHECK_OK);
3030 Expression* right = ParseAssignmentExpression(accept_IN, CHECK_OK);
3047 Expression* x = ParseUnaryExpression(CHECK_OK);
3053 Expression* y = ParseBinaryExpression(prec1 + 1, accept_IN, CHECK_OK);
3155 Expression* expression = ParseUnaryExpression(CHECK_OK);
3219 Expression* expression = ParseUnaryExpression(CHECK_OK);
3232 CheckStrictModeLValue(expression, "strict_lhs_prefix", CHECK_OK);
3252 Expression* expression = ParseLeftHandSideExpression(CHECK_OK);
3267 CheckStrictModeLValue(expression, "strict_lhs_prefix", CHECK_OK);
3289 result = ParseNewExpression(CHECK_OK);
3291 result = ParseMemberExpression(CHECK_OK);
3299 Expression* index = ParseExpression(true, CHECK_OK);
3301 Expect(Token::RBRACK, CHECK_OK);
3325 ZoneList<Expression*>* args = ParseArguments(CHECK_OK);
3347 Handle<String> name = ParseIdentifierName(CHECK_OK);
3373 Expect(Token::NEW, CHECK_OK);
3378 result = ParseNewPrefix(stack, CHECK_OK);
3380 result = ParseMemberWithNewPrefixesExpression(stack, CHECK_OK);
3412 Expect(Token::FUNCTION, CHECK_OK);
3419 CHECK_OK);
3429 CHECK_OK);
3431 result = ParsePrimaryExpression(CHECK_OK);
3439 Expression* index = ParseExpression(true, CHECK_OK);
3449 Expect(Token::RBRACK, CHECK_OK);
3455 Handle<String> name = ParseIdentifierName(CHECK_OK);
3464 ZoneList<Expression*>* args = ParseArguments(CHECK_OK);
3483 Expect(Token::DEBUGGER, CHECK_OK);
3484 ExpectSemicolon(CHECK_OK);
3573 Handle<String> name = ParseIdentifier(CHECK_OK);
3606 result = ParseRegExpLiteral(true, CHECK_OK);
3610 result = ParseRegExpLiteral(false, CHECK_OK);
3614 result = ParseArrayLiteral(CHECK_OK);
3618 result = ParseObjectLiteral(CHECK_OK);
3626 result = ParseExpression(true, CHECK_OK);
3627 Expect(Token::RPAREN, CHECK_OK);
3632 result = ParseV8Intrinsic(CHECK_OK);
3655 Expect(Token::LBRACK, CHECK_OK);
3661 elem = ParseAssignmentExpression(true, CHECK_OK);
3665 Expect(Token::COMMA, CHECK_OK);
3668 Expect(Token::RBRACK, CHECK_OK);
3957 CHECK_OK);
3983 Expect(Token::LBRACE, CHECK_OK);
4001 ParseIdentifierNameOrGetOrSet(&is_getter, &is_setter, CHECK_OK);
4008 ParseObjectLiteralGetSet(is_getter, CHECK_OK);
4013 checker.CheckProperty(property, loc, CHECK_OK);
4015 if (peek() != Token::RBRACE) Expect(Token::COMMA, CHECK_OK);
4064 Expect(Token::COLON, CHECK_OK);
4065 Expression* value = ParseAssignmentExpression(true, CHECK_OK);
4082 checker.CheckProperty(property, loc, CHECK_OK);
4086 if (peek() != Token::RBRACE) Expect(Token::COMMA, CHECK_OK);
4093 Expect(Token::RBRACE, CHECK_OK);
4146 Expect(Token::LPAREN, CHECK_OK);
4149 Expression* argument = ParseAssignmentExpression(true, CHECK_OK);
4158 if (!done) Expect(Token::COMMA, CHECK_OK);
4160 Expect(Token::RPAREN, CHECK_OK);
4321 Expect(Token::LPAREN, CHECK_OK);
4332 CHECK_OK);
4355 if (!done) Expect(Token::COMMA, CHECK_OK);
4357 Expect(Token::RPAREN, CHECK_OK);
4359 Expect(Token::LBRACE, CHECK_OK);
4409 ReportInvalidPreparseData(function_name, CHECK_OK);
4414 Expect(Token::RBRACE, CHECK_OK);
4448 Expect(Token::RBRACE, CHECK_OK);
4491 ParseSourceElements(body, Token::RBRACE, false, false, CHECK_OK);
4507 Expect(Token::RBRACE, CHECK_OK);
4555 CHECK_OK);
4561 CheckConflictingVarDeclarations(scope, CHECK_OK);
4616 Expect(Token::MOD, CHECK_OK);
4617 Handle<String> name = ParseIdentifier(CHECK_OK);
4618 ZoneList<Expression*>* args = ParseArguments(CHECK_OK);