Lines Matching refs:Parser
37 // Common base class shared between parser and pre-parser. Traits encapsulate
38 // the differences between Parser and PreParser:
40 // - Return types: For example, Parser functions return Expression* and
43 // - Creating parse tree nodes: Parser generates an AST during the recursive
52 // example, Parser keeps track of which function literals should be marked as
94 ParserRecorder* log, typename Traits::Type::Parser this_object)
162 // FunctionState and BlockState together implement the parser's scope stack.
163 // The parser's current scope is in scope_. BlockState and FunctionState
165 // used to hold the parser's per-function and per-block state.
290 // parameters. To do so we need to reset some of the parser state back to
294 explicit Checkpoint(ParserBase* parser) {
295 function_state_ = parser->function_state_;
318 ParsingModeScope(ParserBase* parser, Mode mode)
319 : parser_(parser),
320 old_mode_(parser->mode()) {
852 explicit ObjectLiteralCheckerBase(ParserBase* parser) : parser_(parser) {}
860 ParserBase* parser() const { return parser_; }
870 explicit ObjectLiteralChecker(ParserBase* parser)
871 : ObjectLiteralCheckerBase(parser), has_seen_proto_(false) {}
885 explicit ClassLiteralChecker(ParserBase* parser)
886 : ObjectLiteralCheckerBase(parser), has_seen_constructor_(false) {}
1864 // property. (Parser only.)
1959 // parser. Ensure that the number of materialized literals matches between
1960 // the parser and preparser
2212 // We start using the binary expression parser for prec >= 4 only!
3336 this->parser()->ReportMessage(MessageTemplate::kDuplicateProto);
3356 this->parser()->ReportMessage(MessageTemplate::kStaticPrototype);
3365 this->parser()->ReportMessage(msg);
3370 this->parser()->ReportMessage(MessageTemplate::kDuplicateConstructor);