Lines Matching refs:parser
18 // Common base class shared between parser and pre-parser. Traits encapsulate
19 // the differences between Parser and PreParser:
21 // - Return types: For example, Parser functions return Expression* and
24 // - Creating parse tree nodes: Parser generates an AST during the recursive
33 // example, Parser keeps track of which function literals should be marked as
69 typename Traits::Type::Parser this_object)
88 // allowed to be parsed by this instance of the parser.
100 // allowed to be parsed by this instance of the parser.
125 // FunctionState and BlockState together implement the parser's scope stack.
126 // The parser's current scope is in scope_. BlockState and FunctionState
128 // used to hold the parser's per-function and per-block state.
217 ParsingModeScope(ParserBase* parser, Mode mode)
218 : parser_(parser),
219 old_mode_(parser->mode()) {
435 ObjectLiteralChecker(ParserBase* parser, StrictMode strict_mode)
436 : parser_(parser),
443 ParserBase* parser() const { return parser_; }
488 typename Traits::Type::Zone* zone_; // Only used by Parser.
613 // Dummy implementation for making expression->somefunc() work in both Parser
852 typedef PreParser* Parser;
1624 // property. (Parser only.)
1780 // We start using the binary expression parser for prec >= 4 only!
2157 parser()->ReportMessage("strict_duplicate_property");
2160 parser()->ReportMessage("accessor_data_property");
2164 parser()->ReportMessage("accessor_get_set");