Lines Matching refs:CHECK_OK
513 // The CHECK_OK macro is a convenient macro to enforce error
520 #define CHECK_OK ok); \
1125 Statement* stat = ParseModuleElement(NULL, CHECK_OK);
1219 Statement* stmt = ParseStatement(labels, CHECK_OK);
1246 Handle<String> name = ParseIdentifier(CHECK_OK);
1253 Module* module = ParseModule(CHECK_OK);
1257 Declare(declaration, true, CHECK_OK);
1287 Expect(Token::ASSIGN, CHECK_OK);
1288 Module* result = ParseModulePath(CHECK_OK);
1289 ExpectSemicolon(CHECK_OK);
1294 ExpectContextualKeyword("at", CHECK_OK);
1295 Module* result = ParseModuleUrl(CHECK_OK);
1296 ExpectSemicolon(CHECK_OK);
1314 Expect(Token::LBRACE, CHECK_OK);
1326 Statement* stat = ParseModuleElement(NULL, CHECK_OK);
1334 Expect(Token::RBRACE, CHECK_OK);
1349 Module* result = ParseModuleVariable(CHECK_OK);
1351 Handle<String> name = ParseIdentifierName(CHECK_OK);
1382 Handle<String> name = ParseIdentifier(CHECK_OK);
1398 Expect(Token::STRING, CHECK_OK);
1399 Handle<String> symbol = GetSymbol(CHECK_OK);
1429 Expect(Token::IMPORT, CHECK_OK);
1432 Handle<String> name = ParseIdentifierName(CHECK_OK);
1436 name = ParseIdentifierName(CHECK_OK);
1440 ExpectContextualKeyword("from", CHECK_OK);
1441 Module* module = ParseModuleSpecifier(CHECK_OK);
1442 ExpectSemicolon(CHECK_OK);
1468 Declare(declaration, true, CHECK_OK);
1485 Expect(Token::EXPORT, CHECK_OK);
1491 Handle<String> name = ParseIdentifier(CHECK_OK);
1497 name = ParseIdentifier(CHECK_OK);
1500 ExpectSemicolon(CHECK_OK);
1503 result = ParseModuleDeclaration(&names, CHECK_OK);
1509 result = ParseFunctionDeclaration(&names, CHECK_OK);
1515 result = ParseVariableStatement(kModuleElement, &names, CHECK_OK);
1532 interface->Add(names[i], inner, CHECK_OK);
1661 TryStatement* statement = ParseTryStatement(CHECK_OK);
1881 Expect(Token::FUNCTION, CHECK_OK);
1882 Handle<String> name = ParseIdentifier(CHECK_OK);
1883 Expect(Token::LPAREN, CHECK_OK);
1886 ParseIdentifier(CHECK_OK);
1889 Expect(Token::COMMA, CHECK_OK);
1892 Expect(Token::RPAREN, CHECK_OK);
1893 Expect(Token::SEMICOLON, CHECK_OK);
1927 Declare(declaration, true, CHECK_OK);
1939 Expect(Token::FUNCTION, CHECK_OK);
1943 &is_strict_reserved, CHECK_OK);
1948 CHECK_OK);
1956 Declare(declaration, true, CHECK_OK);
1974 Expect(Token::LBRACE, CHECK_OK);
1977 Statement* stat = ParseStatement(NULL, CHECK_OK);
1983 Expect(Token::RBRACE, CHECK_OK);
1999 Expect(Token::LBRACE, CHECK_OK);
2008 Statement* stat = ParseBlockElement(NULL, CHECK_OK);
2015 Expect(Token::RBRACE, CHECK_OK);
2031 ParseVariableDeclarations(var_context, NULL, names, &ignore, CHECK_OK);
2032 ExpectSemicolon(CHECK_OK);
2160 name = ParseIdentifier(CHECK_OK);
2188 Declare(declaration, mode != VAR, CHECK_OK);
2230 Expect(Token::ASSIGN, CHECK_OK);
2232 value = ParseAssignmentExpression(var_context != kForStatement, CHECK_OK);
2379 Expression* expr = ParseExpression(true, CHECK_OK);
2406 Expect(Token::COLON, CHECK_OK);
2433 ExpectSemicolon(CHECK_OK);
2443 Expect(Token::IF, CHECK_OK);
2444 Expect(Token::LPAREN, CHECK_OK);
2445 Expression* condition = ParseExpression(true, CHECK_OK);
2446 Expect(Token::RPAREN, CHECK_OK);
2447 Statement* then_statement = ParseStatement(labels, CHECK_OK);
2451 else_statement = ParseStatement(labels, CHECK_OK);
2463 Expect(Token::CONTINUE, CHECK_OK);
2468 label = ParseIdentifier(CHECK_OK);
2471 target = LookupContinueTarget(label, CHECK_OK);
2484 ExpectSemicolon(CHECK_OK);
2493 Expect(Token::BREAK, CHECK_OK);
2498 label = ParseIdentifier(CHECK_OK);
2503 ExpectSemicolon(CHECK_OK);
2507 target = LookupBreakTarget(label, CHECK_OK);
2520 ExpectSemicolon(CHECK_OK);
2532 Expect(Token::RETURN, CHECK_OK);
2540 ExpectSemicolon(CHECK_OK);
2543 Expression* expr = ParseExpression(true, CHECK_OK);
2544 ExpectSemicolon(CHECK_OK);
2568 Expect(Token::WITH, CHECK_OK);
2576 Expect(Token::LPAREN, CHECK_OK);
2577 Expression* expr = ParseExpression(true, CHECK_OK);
2578 Expect(Token::RPAREN, CHECK_OK);
2585 stmt = ParseStatement(labels, CHECK_OK);
2599 Expect(Token::CASE, CHECK_OK);
2600 label = ParseExpression(true, CHECK_OK);
2602 Expect(Token::DEFAULT, CHECK_OK);
2611 Expect(Token::COLON, CHECK_OK);
2617 Statement* stat = ParseStatement(NULL, CHECK_OK);
2633 Expect(Token::SWITCH, CHECK_OK);
2634 Expect(Token::LPAREN, CHECK_OK);
2635 Expression* tag = ParseExpression(true, CHECK_OK);
2636 Expect(Token::RPAREN, CHECK_OK);
2640 Expect(Token::LBRACE, CHECK_OK);
2642 CaseClause* clause = ParseCaseClause(&default_seen, CHECK_OK);
2645 Expect(Token::RBRACE, CHECK_OK);
2656 Expect(Token::THROW, CHECK_OK);
2663 Expression* exception = ParseExpression(true, CHECK_OK);
2664 ExpectSemicolon(CHECK_OK);
2682 Expect(Token::TRY, CHECK_OK);
2688 try_block = ParseBlock(NULL, CHECK_OK);
2710 Expect(Token::LPAREN, CHECK_OK);
2713 name = ParseIdentifier(CHECK_OK);
2721 Expect(Token::RPAREN, CHECK_OK);
2730 catch_block = ParseBlock(NULL, CHECK_OK);
2732 Expect(Token::LBRACE, CHECK_OK);
2741 finally_block = ParseBlock(NULL, CHECK_OK);
2789 Expect(Token::DO, CHECK_OK);
2790 Statement* body = ParseStatement(NULL, CHECK_OK);
2791 Expect(Token::WHILE, CHECK_OK);
2792 Expect(Token::LPAREN, CHECK_OK);
2799 Expression* cond = ParseExpression(true, CHECK_OK);
2800 Expect(Token::RPAREN, CHECK_OK);
2820 Expect(Token::WHILE, CHECK_OK);
2821 Expect(Token::LPAREN, CHECK_OK);
2822 Expression* cond = ParseExpression(true, CHECK_OK);
2823 Expect(Token::RPAREN, CHECK_OK);
2824 Statement* body = ParseStatement(NULL, CHECK_OK);
2842 Expect(Token::FOR, CHECK_OK);
2843 Expect(Token::LPAREN, CHECK_OK);
2849 ParseVariableDeclarations(kForStatement, NULL, NULL, &name, CHECK_OK);
2856 Expect(Token::IN, CHECK_OK);
2857 Expression* enumerable = ParseExpression(true, CHECK_OK);
2858 Expect(Token::RPAREN, CHECK_OK);
2860 Statement* body = ParseStatement(NULL, CHECK_OK);
2879 CHECK_OK);
2903 Expect(Token::IN, CHECK_OK);
2904 Expression* enumerable = ParseExpression(true, CHECK_OK);
2905 Expect(Token::RPAREN, CHECK_OK);
2907 Statement* body = ParseStatement(NULL, CHECK_OK);
2928 Expression* expression = ParseExpression(false, CHECK_OK);
2942 Expect(Token::IN, CHECK_OK);
2943 Expression* enumerable = ParseExpression(true, CHECK_OK);
2944 Expect(Token::RPAREN, CHECK_OK);
2946 Statement* body = ParseStatement(NULL, CHECK_OK);
2966 Expect(Token::SEMICOLON, CHECK_OK);
2970 cond = ParseExpression(true, CHECK_OK);
2972 Expect(Token::SEMICOLON, CHECK_OK);
2976 Expression* exp = ParseExpression(true, CHECK_OK);
2979 Expect(Token::RPAREN, CHECK_OK);
2981 Statement* body = ParseStatement(NULL, CHECK_OK);
3016 Expression* result = ParseAssignmentExpression(accept_IN, CHECK_OK);
3018 Expect(Token::COMMA, CHECK_OK);
3020 Expression* right = ParseAssignmentExpression(accept_IN, CHECK_OK);
3035 Expression* expression = ParseConditionalExpression(accept_IN, CHECK_OK);
3055 CheckStrictModeLValue(expression, "strict_lhs_assignment", CHECK_OK);
3061 Expression* right = ParseAssignmentExpression(accept_IN, CHECK_OK);
3108 Expression* expression = ParseBinaryExpression(4, accept_IN, CHECK_OK);
3115 Expression* left = ParseAssignmentExpression(true, CHECK_OK);
3116 Expect(Token::COLON, CHECK_OK);
3118 Expression* right = ParseAssignmentExpression(accept_IN, CHECK_OK);
3135 Expression* x = ParseUnaryExpression(CHECK_OK);
3141 Expression* y = ParseBinaryExpression(prec1 + 1, accept_IN, CHECK_OK);
3243 Expression* expression = ParseUnaryExpression(CHECK_OK);
3282 Expression* expression = ParseUnaryExpression(CHECK_OK);
3295 CheckStrictModeLValue(expression, "strict_lhs_prefix", CHECK_OK);
3315 Expression* expression = ParseLeftHandSideExpression(CHECK_OK);
3330 CheckStrictModeLValue(expression, "strict_lhs_prefix", CHECK_OK);
3352 result = ParseNewExpression(CHECK_OK);
3354 result = ParseMemberExpression(CHECK_OK);
3362 Expression* index = ParseExpression(true, CHECK_OK);
3364 Expect(Token::RBRACK, CHECK_OK);
3382 ZoneList<Expression*>* args = ParseArguments(CHECK_OK);
3403 Handle<String> name = ParseIdentifierName(CHECK_OK);
3429 Expect(Token::NEW, CHECK_OK);
3434 result = ParseNewPrefix(stack, CHECK_OK);
3436 result = ParseMemberWithNewPrefixesExpression(stack, CHECK_OK);
3468 Expect(Token::FUNCTION, CHECK_OK);
3474 CHECK_OK);
3483 CHECK_OK);
3485 result = ParsePrimaryExpression(CHECK_OK);
3493 Expression* index = ParseExpression(true, CHECK_OK);
3503 Expect(Token::RBRACK, CHECK_OK);
3509 Handle<String> name = ParseIdentifierName(CHECK_OK);
3518 ZoneList<Expression*>* args = ParseArguments(CHECK_OK);
3537 Expect(Token::DEBUGGER, CHECK_OK);
3538 ExpectSemicolon(CHECK_OK);
3625 Handle<String> name = ParseIdentifier(CHECK_OK);
3650 Handle<String> symbol = GetSymbol(CHECK_OK);
3657 result = ParseRegExpLiteral(true, CHECK_OK);
3661 result = ParseRegExpLiteral(false, CHECK_OK);
3665 result = ParseArrayLiteral(CHECK_OK);
3669 result = ParseObjectLiteral(CHECK_OK);
3677 result = ParseExpression(true, CHECK_OK);
3678 Expect(Token::RPAREN, CHECK_OK);
3683 result = ParseV8Intrinsic(CHECK_OK);
3733 Expect(Token::LBRACK, CHECK_OK);
3739 elem = ParseAssignmentExpression(true, CHECK_OK);
3743 Expect(Token::COMMA, CHECK_OK);
3746 Expect(Token::RBRACK, CHECK_OK);
4071 name = GetSymbol(CHECK_OK);
4078 CHECK_OK);
4104 Expect(Token::LBRACE, CHECK_OK);
4122 ParseIdentifierNameOrGetOrSet(&is_getter, &is_setter, CHECK_OK);
4129 ParseObjectLiteralGetSet(is_getter, CHECK_OK);
4134 checker.CheckProperty(property, loc, CHECK_OK);
4136 if (peek() != Token::RBRACE) Expect(Token::COMMA, CHECK_OK);
4151 Handle<String> string = GetSymbol(CHECK_OK);
4173 Handle<String> string = GetSymbol(CHECK_OK);
4184 Expect(Token::COLON, CHECK_OK);
4185 Expression* value = ParseAssignmentExpression(true, CHECK_OK);
4202 checker.CheckProperty(property, loc, CHECK_OK);
4206 if (peek() != Token::RBRACE) Expect(Token::COMMA, CHECK_OK);
4213 Expect(Token::RBRACE, CHECK_OK);
4263 Expect(Token::LPAREN, CHECK_OK);
4266 Expression* argument = ParseAssignmentExpression(true, CHECK_OK);
4275 if (!done) Expect(Token::COMMA, CHECK_OK);
4277 Expect(Token::RPAREN, CHECK_OK);
4414 Expect(Token::LPAREN, CHECK_OK);
4425 CHECK_OK);
4448 if (!done) Expect(Token::COMMA, CHECK_OK);
4450 Expect(Token::RPAREN, CHECK_OK);
4452 Expect(Token::LBRACE, CHECK_OK);
4503 ReportInvalidPreparseData(function_name, CHECK_OK);
4508 Expect(Token::RBRACE, CHECK_OK);
4544 Expect(Token::RBRACE, CHECK_OK);
4567 ParseSourceElements(body, Token::RBRACE, false, CHECK_OK);
4576 Expect(Token::RBRACE, CHECK_OK);
4624 CHECK_OK);
4630 CheckConflictingVarDeclarations(scope, CHECK_OK);
4680 Expect(Token::MOD, CHECK_OK);
4681 Handle<String> name = ParseIdentifier(CHECK_OK);
4682 ZoneList<Expression*>* args = ParseArguments(CHECK_OK);