Lines Matching full:scope
23 varbinder::Scope *NearestScope(const ir::AstNode *ast) in NearestScope()
29 return ast == nullptr ? nullptr : ast->Scope(); in NearestScope()
80 auto scopes = ArenaSet<varbinder::Scope *> {allocator->Adapter()}; in FindCaptured()
82 if (ast->IsScopeBearer() && ast->Scope() != nullptr) { in FindCaptured()
83 scopes.insert(ast->Scope()); in FindCaptured()
84 if (ast->Scope()->IsFunctionScope()) { in FindCaptured()
85 scopes.insert(ast->Scope()->AsFunctionScope()->ParamScope()); in FindCaptured()
90 scopes.insert(ast->Scope()->Parent()); in FindCaptured()
110 auto *scope = NearestScope(node); in Recheck() local
111 auto bscope = varbinder::LexicalScope<varbinder::Scope>::Enter(varBinder, scope); in Recheck()
115 varBinder->ResolveReferencesForScopeWithContext(node, scope); in Recheck()
122 auto scopeCtx = checker::ScopeContext(checker, scope); in Recheck()