Lines Matching defs:scope
66 auto *scope = var->GetScope();
67 if (scope != nullptr && !scope->IsClassScope() && !scope->IsGlobalScope() &&
68 innermostArrowScopes.count(scope) == 0) {
130 auto *scope = body->Scope();
153 newVar->SetScope(scope);
154 scope->EraseBinding(newVar->Name());
155 scope->InsertBinding(newVar->Name(), newVar);
162 auto lexScope = varbinder::LexicalScope<varbinder::Scope>::Enter(varBinder, scope);
164 auto scopeContext = checker::ScopeContext(checker, scope);
180 auto *scope = oldVar->GetScope();
203 newVar->SetScope(scope);
205 scope->EraseBinding(oldVar->Name());
206 scope->InsertBinding(newVar->Name(), newVar);
208 auto lexScope = varbinder::LexicalScope<varbinder::Scope>::Enter(varBinder, scope);
210 auto scopeContext = checker::ScopeContext(checker, scope);
282 auto *scope = newVar->GetScope();
291 auto lexScope = varbinder::LexicalScope<varbinder::Scope>::Enter(varBinder, scope);
293 auto scopeContext = checker::ScopeContext(checker, scope);
295 varBinder->ResolveReferencesForScopeWithContext(res, scope);