Lines Matching refs:parser
84 // Stack-allocated scope to collect source ranges from the parser.
109 // handling for functions that may fail (by returning if there was an parser
121 // Common base class template shared between parser and pre-parser.
122 // The Impl parameter is the actual class of the parser/pre-parser,
124 // The structure of the parser objects is roughly the following:
131 // // The parser base object, which should just implement pure
132 // // parser behavior. The Impl parameter is the actual derived
133 // // class (according to CRTP), which implements impure parser
138 // // And then, for each parser variant (e.g., parser, preparser, etc):
146 // The parser base object implements pure parsing, according to the
147 // language grammar. Different parser implementations may exhibit
148 // different parser-driven behavior that is not considered as pure
153 // and PreParser methods use PreParserExpression. For any given parser
322 // BlockState and FunctionState implement the parser's scope stack.
323 // The parser's current scope is in scope_. BlockState and FunctionState
325 // used to hold the parser's per-funcion state.
364 Target(ParserBase* parser, BreakableStatementT statement,
367 : stack_(parser->function_state_->target_stack_address()),
568 explicit CatchInfo(ParserBase* parser)
569 : pattern(parser->impl()->NullExpression()),
579 explicit ForInfo(ParserBase* parser)
580 : bound_names(1, parser->zone()),
592 explicit ClassInfo(ParserBase* parser)
593 : extends(parser->impl()->NullExpression()),
594 public_members(parser->impl()->NewClassPropertyList(4)),
595 private_members(parser->impl()->NewClassPropertyList(4)),
596 static_elements(parser->impl()->NewClassStaticElementList(4)),
597 instance_fields(parser->impl()->NewClassPropertyList(4)),
598 constructor(parser->impl()->NullExpression()),
637 explicit ParsePropertyInfo(ParserBase* parser,
640 name(parser->impl()->NullIdentifier()),
1310 // list. This works because in the case of the parser, StatementListT is
1368 // "for (<init>;" is assumed to have been parser already.
1509 AcceptINScope(ParserBase* parser, bool accept_IN)
1510 : parser_(parser), previous_accept_IN_(parser->accept_IN_) {
1523 ParameterParsingScope(Impl* parser, FormalParametersT* parameters)
1524 : parser_(parser), parent_parameters_(parser_->parameters_) {
1537 explicit FunctionParsingScope(Impl* parser)
1538 : parser_(parser), expression_scope_(parser_->expression_scope_) {
1590 // Preallocating the struct as part of the parser minimizes the cost of
1804 // the parser.
1806 ZoneScope zone_scope(zone()); // Free regexp parser memory after use.
3295 // Allow the parser's implementation to rewrite the expression.
3333 // specially in the parser.