Lines Matching refs:scope

61         for (Scope* scope = parser()->scope(); !scope->is_declaration_scope();
62 scope = scope->outer_scope()) {
63 if (scope->is_with_scope()) {
65 } else if (scope->is_catch_scope()) {
66 Variable* masking_var = scope->LookupLocal(name);
67 // If a variable is declared in a catch scope with a masking
81 // If a variable is declared in a with scope, the initializing
83 parser()->scope()->AddUnresolved(result);
96 // Merged variables come from a CanBeDeclaration expression scope, and
97 // weren't added as unresolved references to the variable scope yet. Add
98 // them to the variable scope on the boundary where it becomes clear they
105 this->parser()->scope()->AddUnresolved(proxy);
136 // the chain up to the first unambiguous scope.
141 // immediately return if the current scope is not ambiguous.
147 // (ArrowHeadParsingScopes) up to the first known unambiguous parameter scope.
150 ExpressionScope* scope = this;
151 while (!scope->IsCertainlyParameterDeclaration()) {
153 if (scope->CanBeParameterDeclaration()) {
154 scope->AsArrowHeadParsingScope()->RecordDeclarationError(loc, message);
156 scope = scope->parent();
157 if (scope == nullptr) return;
163 ExpressionScope* scope = this;
165 if (scope->IsArrowHeadParsingScope()) {
166 scope->AsArrowHeadParsingScope()->RecordThisUse();
168 scope = scope->parent();
169 } while (scope != nullptr);
376 this->parser()->scope(), &was_added, pos);
378 this->parser()->scope()->num_var() > kMaxNumFunctionLocals) {
445 this->parser()->scope(), &was_added, pos);
464 // scope was active. If the scope is an expression, the variable proxies will be
496 for (ExpressionScopeT* scope = this; scope != nullptr;
497 scope = scope->parent()) {
499 if (scope->type_ ==
501 scope->AsArrowHeadParsingScope()->RecordDeclarationError(loc, message);
566 this->parser()->scope()->AddUnresolved(variable);
638 // Debug verification to make sure every scope is validated exactly once.
660 // in the same scope. E.g., in async(X,Y,Z) or [X,Y,Z], X and Y and Z will all
663 // scope to parse the individual expressions, while keeping track of the
675 explicit AccumulationScope(ExpressionScope<Types>* scope) : scope_(nullptr) {
676 if (!scope->CanBeExpression()) return;
677 scope_ = scope->AsExpressionParsingScope();
687 // Merge errors from the underlying ExpressionParsingScope into this scope.
689 // error from the underlying scope.
742 // error and allows the scope to be validated as a declaration rather than an