Lines Matching refs:Parser
41 #include "src/parsing/parser.h"
145 // Parser/Scanner needs a stack limit.
381 // didn't match what Parser wanted to consume.
1066 i::Parser parser(&info);
1067 parser.set_allow_harmony_sloppy(true);
1069 CHECK(parser.Parse(&info));
1118 i::Parser parser(&info);
1119 parser.set_allow_harmony_sloppy(true);
1173 // Test the parser for correctly setting the start and end positions
1384 i::Parser parser(&info);
1385 parser.set_allow_lazy(true);
1388 parser.Parse(&info);
1410 // See comments in ParseFunctionLiteral in parser.cc.
1434 i::Parser parser(&info);
1435 parser.set_allow_harmony_sloppy(true);
1436 parser.Parse(&info);
1525 void SetParserFlags(i::ParserBase<Traits>* parser,
1527 parser->set_allow_lazy(flags.Contains(kAllowLazy));
1528 parser->set_allow_natives(flags.Contains(kAllowNatives));
1529 parser->set_allow_harmony_default_parameters(
1531 parser->set_allow_harmony_sloppy(flags.Contains(kAllowHarmonySloppy));
1532 parser->set_allow_harmony_sloppy_let(flags.Contains(kAllowHarmonySloppyLet));
1533 parser->set_allow_harmony_destructuring_bind(
1535 parser->set_allow_harmony_destructuring_assignment(
1537 parser->set_allow_strong_mode(flags.Contains(kAllowStrongMode));
1538 parser->set_allow_legacy_const(!flags.Contains(kNoLegacyConst));
1578 i::Parser parser(&info);
1579 SetParserFlags(&parser, flags);
1585 parser.Parse(&info);
1594 // Extract exception from the parser.
1604 "Parser failed on:\n"
1615 "Parser failed on:\n"
1623 // Check that preparser and parser produce the same error.
1629 "Expected parser and preparser to produce the same error on:\n"
1645 "However, the parser succeeded",
1653 "However, parser and preparser succeeded",
1659 "Preparser materialized literals (%d) differ from Parser materialized "
1662 "However, parser and preparser succeeded",
2669 // These tests make sure that Parser doesn't start producing less "preparse
2708 i::Parser::ParseStatic(&info);
3543 i::Parser parser(&info);
3544 CHECK(parser.Parse(&info));
3713 // Tests that parser and preparser generate the same kind of errors
3824 // ensure that an error is reported in both full parser and preparser.
3834 // Tests that parser and preparser accept valid arrow functions syntax.
4017 // Tests that parser and preparser accept 'super' keyword in right places.
4448 // Tests that parser and preparser accept valid class syntax.
5619 i::Parser parser(&info);
5621 if (!parser.Parse(&info)) {
5629 "Parser failed on:\n"
5644 i::Parser parser(&info);
5646 CHECK(!parser.Parse(&info));
5734 i::Parser parser(&info);
5736 CHECK(!parser.Parse(&info));
5764 i::Parser parser(&info);
5766 CHECK(parser.Parse(&info));
5885 i::Parser parser(&info);
5886 parser.set_allow_strong_mode(true);
5888 parser.Parse(&info);
5902 // Test that multiple directives ("use strict" / "use strong") put the parser
7340 // just splitting them for now until the parser gets support for arrow