Lines Matching refs:ok
89 PreParserExpression PreParserTraits::ParseV8Intrinsic(bool* ok) {
90 return pre_parser_->ParseV8Intrinsic(ok);
98 LanguageMode language_mode, bool* ok) {
101 function_token_position, type, language_mode, ok);
123 bool ok = true;
125 ParseLazyFunctionLiteralBody(&ok, bookmark);
131 } else if (!ok) {
137 CheckStrictOctalLiteral(start_position, end_pos, &ok);
139 if (!ok) return kPreParseSuccess;
148 int pos, bool* ok) {
150 name_is_strict_reserved, pos, ok);
168 PreParser::Statement PreParser::ParseStatementListItem(bool* ok) {
188 return ParseHoistableDeclaration(ok);
190 return ParseClassDeclaration(ok);
192 return ParseVariableStatement(kStatementListItem, ok);
195 return ParseVariableStatement(kStatementListItem, ok);
202 return ParseAsyncFunctionDeclaration(ok);
208 return ParseStatement(kAllowLabelledFunctionStatement, ok);
212 void PreParser::ParseStatementList(int end_token, bool* ok,
229 Statement statement = ParseStatementListItem(ok);
230 if (!*ok) return;
249 *ok = false;
271 #define CHECK_OK ok); \
272 if (!*ok) return Statement::Default(); \
278 AllowLabelledFunctionStatement allow_function, bool* ok) {
287 return ParseSubStatement(allow_function, ok);
290 PreParser::Statement PreParser::ParseScopedStatement(bool legacy, bool* ok) {
293 return ParseSubStatement(kDisallowLabelledFunctionStatement, ok);
297 return ParseFunctionDeclaration(ok);
302 AllowLabelledFunctionStatement allow_function, bool* ok) {
330 return ParseBlock(ok);
337 return ParseIfStatement(ok);
340 return ParseDoWhileStatement(ok);
343 return ParseWhileStatement(ok);
346 return ParseForStatement(ok);
349 return ParseContinueStatement(ok);
352 return ParseBreakStatement(ok);
355 return ParseReturnStatement(ok);
358 return ParseWithStatement(ok);
361 return ParseSwitchStatement(ok);
364 return ParseThrowStatement(ok);
367 return ParseTryStatement(ok);
379 *ok = false;
383 return ParseDebuggerStatement(ok);
386 return ParseVariableStatement(kStatement, ok);
389 return ParseExpressionOrLabelledStatement(allow_function, ok);
394 int pos, ParseFunctionFlags flags, bool* ok) {
406 *ok = false;
421 PreParser::Statement PreParser::ParseAsyncFunctionDeclaration(bool* ok) {
429 return ParseHoistableDeclaration(pos, flags, ok);
432 PreParser::Statement PreParser::ParseHoistableDeclaration(bool* ok) {
445 return ParseHoistableDeclaration(pos, flags, ok);
449 PreParser::Statement PreParser::ParseClassDeclaration(bool* ok) {
462 PreParser::Statement PreParser::ParseBlock(bool* ok) {
475 Expect(Token::RBRACE, ok);
482 bool* ok) {
501 Scanner::Location* bindings_loc, bool* ok) {
540 *ok = false;
585 *ok = false;
601 PreParser::Statement PreParser::ParseFunctionDeclaration(bool* ok) {
610 *ok = false;
614 return ParseHoistableDeclaration(pos, flags, ok);
618 AllowLabelledFunctionStatement allow_function, bool* ok) {
629 *ok = false;
655 return ParseFunctionDeclaration(ok);
657 return ParseScopedStatement(true, ok);
661 ParseStatement(kDisallowLabelledFunctionStatement, ok);
673 PreParser::Statement PreParser::ParseIfStatement(bool* ok) {
694 PreParser::Statement PreParser::ParseContinueStatement(bool* ok) {
712 PreParser::Statement PreParser::ParseBreakStatement(bool* ok) {
730 PreParser::Statement PreParser::ParseReturnStatement(bool* ok) {
767 PreParser::Statement PreParser::ParseWithStatement(bool* ok) {
773 *ok = false;
787 PreParser::Statement PreParser::ParseSwitchStatement(bool* ok) {
819 Expect(Token::RBRACE, ok);
824 PreParser::Statement PreParser::ParseDoWhileStatement(bool* ok) {
833 Expect(Token::RPAREN, ok);
839 PreParser::Statement PreParser::ParseWhileStatement(bool* ok) {
847 ParseScopedStatement(true, ok);
852 PreParser::Statement PreParser::ParseForStatement(bool* ok) {
876 if (CheckInOrOf(&mode, ok)) {
877 if (!*ok) return Statement::Default();
882 *ok = false;
896 *ok = false;
921 bool is_for_each = CheckInOrOf(&mode, ok);
922 if (!*ok) return Statement::Default();
979 ParseScopedStatement(true, ok);
985 PreParser::Statement PreParser::ParseThrowStatement(bool* ok) {
992 *ok = false;
996 ExpectSemicolon(ok);
1001 PreParser::Statement PreParser::ParseTryStatement(bool* ok) {
1024 *ok = false;
1060 *ok = false;
1068 PreParser::Statement PreParser::ParseDebuggerStatement(bool* ok) {
1076 ExpectSemicolon(ok);
1082 #define CHECK_OK ok); \
1083 if (!*ok) return Expression::Default(); \
1093 LanguageMode language_mode, bool* ok) {
1153 PreParser::Expression PreParser::ParseAsyncFunctionExpression(bool* ok) {
1172 *ok = false;
1185 void PreParser::ParseLazyFunctionLiteralBody(bool* ok,
1188 ParseStatementList(Token::RBRACE, ok, bookmark);
1189 if (!*ok) return;
1204 int pos, bool* ok) {
1209 *ok = false;
1214 *ok = false;
1265 PreParser::Expression PreParser::ParseV8Intrinsic(bool* ok) {
1270 *ok = false;
1277 ParseArguments(&spread_pos, &classifier, ok);
1286 PreParserExpression PreParser::ParseDoExpression(bool* ok) {
1300 Type::ExpressionClassifier* classifier, int pos, bool* ok) {
1305 pre_parser_->ParseAssignmentExpression(accept_IN, classifier, ok);
1306 if (!*ok) return;