Lines Matching refs:parser
38 #include "src/parser.h"
143 // Parser/Scanner needs a stack limit.
354 // didn't match what Parser wanted to consume.
913 // Test the parser for correctly setting the start and end positions
1119 i::Parser parser(&info);
1120 parser.set_allow_lazy(true);
1121 parser.set_allow_harmony_scoping(true);
1124 parser.Parse();
1189 void SetParserFlags(i::ParserBase<Traits>* parser,
1191 parser->set_allow_lazy(flags.Contains(kAllowLazy));
1192 parser->set_allow_natives_syntax(flags.Contains(kAllowNativesSyntax));
1193 parser->set_allow_harmony_scoping(flags.Contains(kAllowHarmonyScoping));
1194 parser->set_allow_modules(flags.Contains(kAllowModules));
1195 parser->set_allow_generators(flags.Contains(kAllowGenerators));
1196 parser->set_allow_for_of(flags.Contains(kAllowForOf));
1197 parser->set_allow_harmony_numeric_literals(
1228 i::Parser parser(&info);
1229 SetParserFlags(&parser, flags);
1231 parser.Parse();
1237 // Extract exception from the parser.
1247 "Parser failed on:\n"
1258 "Parser failed on:\n"
1266 // Check that preparser and parser produce the same error.
1270 "Expected parser and preparser to produce the same error on:\n"
1286 "However, the parser succeeded",
1293 "However, parser and preparser succeeded",
1780 // the kAllowGenerators flag. However, we test that Parser and PreParser
1963 // These tests make sure that Parser doesn't start producing less "preparse
1999 i::Parser::Parse(&info, true);
2114 "/foo/whatever", // This is an error but not detected by the parser.