Lines Matching full:scope
26 ASSERT(pg->Scope()->IsModuleScope()); in StoreModuleVarOrLocalVar()
27 auto *var = pg->Scope()->FindLocal(decl->Name()); in StoreModuleVarOrLocalVar()
42 auto *scope = pg->Scope(); in HoistVar() local
43 if (scope->IsGlobalScope()) { in HoistVar()
49 auto *funcScope = scope->EnclosingFunctionVariableScope(); in HoistVar()
51 if (scope->HasParamScope() && funcScope->ParamScope()->HasParam(decl->Name())) { in HoistVar()
55 binder::ScopeFindResult result(decl->Name(), scope, 0, var); in HoistVar()
68 const auto &internalName = scriptFunction->Scope()->InternalName(); in HoistFunction()
69 auto *scope = pg->Scope(); in HoistFunction() local
70 if (scope->IsGlobalScope()) { in HoistFunction()
76 ASSERT(scope->IsFunctionScope() || scope->IsCatchScope() || scope->IsLocalScope() || in HoistFunction()
77 scope->IsModuleScope() || scope->IsTSModuleScope() || scope->IsTSEnumScope() || in HoistFunction()
78 scope->IsStaticBlockScope()); in HoistFunction()
79 binder::ScopeFindResult result(decl->Name(), scope, 0, var); in HoistFunction()
87 if (pg->Scope()->IsModuleScope()) { in HoistNameSpaceImports()
103 const auto *scope = pg->Scope(); in Hoist() local
105 for (const auto &[_, var] : scope->Bindings()) { in Hoist()