Lines Matching full:scope
19 #include <binder/scope.h>
30 ASSERT(pg->Scope()->IsModuleScope()); in StoreModuleVarOrLocalVar()
31 auto *var = pg->Scope()->FindLocal(decl->Name()); in StoreModuleVarOrLocalVar()
46 auto *scope = pg->Scope(); in HoistVar() local
47 if (scope->IsGlobalScope()) { in HoistVar()
53 auto *funcScope = scope->EnclosingFunctionVariableScope(); in HoistVar()
55 if (scope->HasParamScope() && funcScope->ParamScope()->HasParam(decl->Name())) { in HoistVar()
59 binder::ScopeFindResult result(decl->Name(), scope, 0, var); in HoistVar()
72 const auto &internalName = scriptFunction->Scope()->InternalName(); in HoistFunction()
73 auto *scope = pg->Scope(); in HoistFunction() local
74 if (scope->IsGlobalScope()) { in HoistFunction()
80 ASSERT(scope->IsFunctionScope() || scope->IsCatchScope() || scope->IsLocalScope() || in HoistFunction()
81 scope->IsModuleScope() || scope->IsTSModuleScope() || scope->IsTSEnumScope() || in HoistFunction()
82 scope->IsStaticBlockScope()); in HoistFunction()
83 binder::ScopeFindResult result(decl->Name(), scope, 0, var); in HoistFunction()
91 if (pg->Scope()->IsModuleScope()) { in HoistNameSpaceImports()
107 const auto *scope = pg->Scope(); in Hoist() local
109 for (const auto &[_, var] : scope->Bindings()) { in Hoist()