Lines Matching refs:Parser
38 #include "parser.h"
141 // Parser/Scanner needs a stack limit.
819 // Test the parser for correctly setting the start and end positions
1025 i::Parser parser(&info);
1026 parser.set_allow_lazy(true);
1027 parser.set_allow_harmony_scoping(true);
1030 parser.Parse();
1093 void SetParserFlags(i::ParserBase* parser, i::EnumSet<ParserFlag> flags) {
1094 parser->set_allow_lazy(flags.Contains(kAllowLazy));
1095 parser->set_allow_natives_syntax(flags.Contains(kAllowNativesSyntax));
1096 parser->set_allow_harmony_scoping(flags.Contains(kAllowHarmonyScoping));
1097 parser->set_allow_modules(flags.Contains(kAllowModules));
1098 parser->set_allow_generators(flags.Contains(kAllowGenerators));
1099 parser->set_allow_for_of(flags.Contains(kAllowForOf));
1100 parser->set_allow_harmony_numeric_literals(
1130 i::Parser parser(&info);
1131 SetParserFlags(&parser, flags);
1133 parser.Parse();
1139 // Extract exception from the parser.
1150 "Parser failed on:\n"
1158 // Check that preparser and parser produce the same error.
1162 "Expected parser and preparser to produce the same error on:\n"
1178 "However, the parser succeeded",