Lines Matching refs:ok
88 PreParserExpression PreParserTraits::ParseV8Intrinsic(bool* ok) {
89 return pre_parser_->ParseV8Intrinsic(ok);
98 LanguageMode language_mode, bool* ok) {
101 function_token_position, type, arity_restriction, language_mode, ok);
121 bool ok = true;
123 ParseLazyFunctionLiteralBody(&ok, bookmark);
128 } else if (!ok) {
134 CheckStrictOctalLiteral(start_position, end_pos, &ok);
135 if (!ok) return kPreParseSuccess;
153 bool name_is_strict_reserved, int pos, bool* ok) {
155 name_is_strict_reserved, pos, ok);
173 PreParser::Statement PreParser::ParseStatementListItem(bool* ok) {
193 return ParseFunctionDeclaration(ok);
195 return ParseClassDeclaration(ok);
198 return ParseVariableStatement(kStatementListItem, ok);
203 return ParseVariableStatement(kStatementListItem, ok);
209 return ParseStatement(ok);
213 void PreParser::ParseStatementList(int end_token, bool* ok,
232 Statement statement = ParseStatementListItem(ok);
233 if (!*ok) return;
242 *ok = false;
248 *ok = false;
269 *ok = false;
286 *ok = false;
308 #define CHECK_OK ok); \
309 if (!*ok) return Statement::Default(); \
315 PreParser::Statement PreParser::ParseStatement(bool* ok) {
324 return ParseSubStatement(ok);
328 PreParser::Statement PreParser::ParseSubStatement(bool* ok) {
356 return ParseBlock(ok);
362 *ok = false;
369 return ParseIfStatement(ok);
372 return ParseDoWhileStatement(ok);
375 return ParseWhileStatement(ok);
378 return ParseForStatement(ok);
381 return ParseContinueStatement(ok);
384 return ParseBreakStatement(ok);
387 return ParseReturnStatement(ok);
390 return ParseWithStatement(ok);
393 return ParseSwitchStatement(ok);
396 return ParseThrowStatement(ok);
399 return ParseTryStatement(ok);
409 *ok = false;
417 return ParseDebuggerStatement(ok);
420 return ParseVariableStatement(kStatement, ok);
427 return ParseVariableStatement(kStatement, ok);
432 return ParseExpressionOrLabelledStatement(ok);
437 PreParser::Statement PreParser::ParseFunctionDeclaration(bool* ok) {
461 PreParser::Statement PreParser::ParseClassDeclaration(bool* ok) {
465 *ok = false;
479 PreParser::Statement PreParser::ParseBlock(bool* ok) {
488 Expect(Token::RBRACE, ok);
495 bool* ok) {
514 Scanner::Location* bindings_loc, bool* ok) {
535 *ok = false;
562 *ok = false;
589 *ok = false;
619 *ok = false;
636 PreParser::Statement PreParser::ParseExpressionOrLabelledStatement(bool* ok) {
647 *ok = false;
678 *ok = false;
708 Statement statement = ParseStatement(ok);
720 *ok = false;
728 PreParser::Statement PreParser::ParseIfStatement(bool* ok) {
749 PreParser::Statement PreParser::ParseContinueStatement(bool* ok) {
767 PreParser::Statement PreParser::ParseBreakStatement(bool* ok) {
785 PreParser::Statement PreParser::ParseReturnStatement(bool* ok) {
810 *ok = false;
820 PreParser::Statement PreParser::ParseWithStatement(bool* ok) {
826 *ok = false;
840 PreParser::Statement PreParser::ParseSwitchStatement(bool* ok) {
871 *ok = false;
875 Expect(Token::RBRACE, ok);
880 PreParser::Statement PreParser::ParseDoWhileStatement(bool* ok) {
889 Expect(Token::RPAREN, ok);
895 PreParser::Statement PreParser::ParseWhileStatement(bool* ok) {
903 ParseSubStatement(ok);
908 PreParser::Statement PreParser::ParseForStatement(bool* ok) {
928 if (accept_IN && CheckInOrOf(&mode, ok)) {
929 if (!*ok) return Statement::Default();
936 *ok = false;
950 *ok = false;
965 bool is_for_each = CheckInOrOf(&mode, ok);
966 if (!*ok) return Statement::Default();
996 *ok = false;
1011 ParseSubStatement(ok);
1016 PreParser::Statement PreParser::ParseThrowStatement(bool* ok) {
1023 *ok = false;
1027 ExpectSemicolon(ok);
1032 PreParser::Statement PreParser::ParseTryStatement(bool* ok) {
1051 *ok = false;
1077 PreParser::Statement PreParser::ParseDebuggerStatement(bool* ok) {
1085 ExpectSemicolon(ok);
1091 #define CHECK_OK ok); \
1092 if (!*ok) return Expression::Default(); \
1103 LanguageMode language_mode, bool* ok) {
1165 *ok = false;
1174 void PreParser::ParseLazyFunctionLiteralBody(bool* ok,
1177 ParseStatementList(Token::RBRACE, ok, bookmark);
1178 if (!*ok) return;
1193 bool name_is_strict_reserved, int pos, bool* ok) {
1198 *ok = false;
1203 *ok = false;
1209 *ok = false;
1251 PreParser::Expression PreParser::ParseV8Intrinsic(bool* ok) {
1256 *ok = false;
1263 ParseArguments(&spread_pos, &classifier, ok);
1272 PreParserExpression PreParser::ParseDoExpression(bool* ok) {