Lines Matching refs:scope
19 #include <binder/scope.h>
46 auto *scope = pg->Scope();
47 if (scope->IsGlobalScope()) {
53 auto *funcScope = scope->EnclosingFunctionVariableScope();
55 if (scope->HasParamScope() && funcScope->ParamScope()->HasParam(decl->Name())) {
59 binder::ScopeFindResult result(decl->Name(), scope, 0, var);
73 auto *scope = pg->Scope();
74 if (scope->IsGlobalScope()) {
80 ASSERT(scope->IsFunctionScope() || scope->IsCatchScope() || scope->IsLocalScope() ||
81 scope->IsModuleScope() || scope->IsTSModuleScope() || scope->IsTSEnumScope() ||
82 scope->IsStaticBlockScope());
83 binder::ScopeFindResult result(decl->Name(), scope, 0, var);
107 const auto *scope = pg->Scope();
109 for (const auto &[_, var] : scope->Bindings()) {