Lines Matching refs:parser
32 // expression parsing for the task at hand. It allows the parser to reuse the
36 // One of the specific subclasses needs to be instantiated to tell the parser
37 // the meaning of the expression it will parse next. The parser then calls
61 for (Scope* scope = parser()->scope(); !scope->is_declaration_scope();
83 parser()->scope()->AddUnresolved(result);
105 this->parser()->scope()->AddUnresolved(proxy);
253 ParserT* parser() const { return parser_; }
260 ExpressionScope(ParserT* parser, ScopeType type)
261 : parser_(parser),
262 parent_(parser->expression_scope_),
271 parser->expression_scope_ = this;
358 VariableDeclarationParsingScope(ParserT* parser, VariableMode mode,
360 : ExpressionScopeT(parser, IsLexicalVariableMode(mode)
374 Variable* var = this->parser()->DeclareVariable(
376 this->parser()->scope(), &was_added, pos);
378 this->parser()->scope()->num_var() > kMaxNumFunctionLocals) {
379 this->parser()->ReportMessage(MessageTemplate::kTooManyVariables);
381 if (names_) names_->Add(name, this->parser()->zone());
383 if (this->parser()->IsLet(name)) {
384 this->parser()->ReportMessageAt(
389 if (this->parser()->loop_nesting_depth() > 0) {
399 // parser performs.
431 explicit ParameterDeclarationParsingScope(ParserT* parser)
432 : ExpressionScopeT(parser, ExpressionScopeT::kParameterDeclaration) {}
443 Variable* var = this->parser()->DeclareVariable(
445 this->parser()->scope(), &was_added, pos);
477 ParserT* parser, ScopeType type = ExpressionScopeT::kExpression)
478 : ExpressionScopeT(parser, type),
479 variable_list_(parser->variable_buffer()),
510 if (V8_LIKELY(this->parser()->IsAssignableIdentifier(expression))) {
520 return this->parser()->RewriteInvalidReferenceExpression(
566 this->parser()->scope()->AddUnresolved(variable);
750 ArrowHeadParsingScope(ParserT* parser, FunctionKind kind)
752 parser,
762 parser->next_arrow_function_info_.ClearStrictParameterError();
772 this->parser()->next_arrow_function_info_.ClearStrictParameterError();
779 DeclarationScope* result = this->parser()->NewFunctionScope(kind());
798 this->parser()->DeclareAndBindVariable(proxy, kind, mode, result,