Lines Matching full:scope
23 varbinder::Scope *NearestScope(const ir::AstNode *ast) in NearestScope()
29 return ast == nullptr ? nullptr : ast->Scope(); in NearestScope()
77 auto scopes = ArenaSet<varbinder::Scope *> {allocator->Adapter()}; in FindCaptured()
79 if (ast->IsScopeBearer() && ast->Scope() != nullptr) { in FindCaptured()
80 scopes.insert(ast->Scope()); in FindCaptured()
81 if (ast->Scope()->IsFunctionScope()) { in FindCaptured()
82 scopes.insert(ast->Scope()->AsFunctionScope()->ParamScope()); in FindCaptured()
87 scopes.insert(ast->Scope()->Parent()); in FindCaptured()
107 auto *scope = NearestScope(node->Parent()); in Recheck() local
108 auto bscope = varbinder::LexicalScope<varbinder::Scope>::Enter(varBinder, scope); in Recheck()
112 varBinder->ResolveReferencesForScopeWithContext(node, scope); in Recheck()
119 auto scopeCtx = checker::ScopeContext(checker, scope); in Recheck()
128 auto *scope = NearestScope(node); in CheckLoweredNode() local
129 varBinder->ResolveReferencesForScopeWithContext(node, scope); in CheckLoweredNode()
135 auto scopeCtx = checker::ScopeContext(checker, scope); in CheckLoweredNode()