Lines Matching refs:GetScope

34     if (auto *var = varBinder->GetScope()->FindLocal(name, varbinder::ResolveBindingOptions::BINDINGS);
45 HandleBlockStmt(program->Ast(), GetScope());
53 auto const *const curScope = VarBinder()->GetScope();
69 HandleBlockStmt(blockStmt, GetScope());
100 return lexicalScope.GetScope();
113 auto *functionScope = functionCtx.GetScope();
140 auto *classScope = classCtx.GetScope();
158 lexicalScope.GetScope()->BindDecls(declCtx.GetScope());
159 HandleFor(declCtx.GetScope(), lexicalScope.GetScope(), forUpdateStmt);
173 HandleFor(declCtx.GetScope(), lexicalScope.GetScope(), forInStmt);
187 HandleFor(declCtx.GetScope(), lexicalScope.GetScope(), forOfStmt);
196 auto *catchParamScope = catchParamCtx.GetScope();
214 auto *catchScope = catchCtx.GetScope();
239 BindScopeNode(localCtx.GetScope(), switchStmt);
248 BindScopeNode(lexicalScope.GetScope(), whileStmt);
268 BindScopeNode(lexicalScope.GetScope(), doWhileStmt);
287 VarBinder()->GetScope()->AsModuleScope()->AddExportDecl(exportAllDecl, decl);
346 VarBinder()->GetScope()->AsModuleScope()->AddExportDecl(exportDecl, std::move(exportDecls));
353 auto *funcParamScope = lexicalScope.GetScope();
501 BindScopeNode(localCtx.GetScope(), moduleDecl);
509 BindScopeNode(localCtx.GetScope(), block);
530 const auto &bindings = VarBinder()->GetScope()->Bindings();
558 BindScopeNode(localScope.GetScope(), interfDecl);
585 const auto &bindings = VarBinder()->GetScope()->Bindings();
592 decl->BindScope(enumCtx.GetScope());
593 BindScopeNode(VarBinder()->GetScope()->AsLocalScope(), enumDecl);
618 BindScopeNode(VarBinder()->GetScope()->AsLocalScope(), paramDecl);
631 BindScopeNode(classCtx.GetScope(), classDef);
666 const auto &bindings = VarBinder()->GetScope()->Bindings();
741 BindScopeNode(GetScope(), program->Ast());
757 BindScopeNode(mainProg->VarBinder()->GetScope(), mainProg->Ast());
762 BindScopeNode(prog->VarBinder()->GetScope(), prog->Ast());
779 var->SetScope(VarBinder()->GetScope());
788 BindScopeNode(GetScope(), blockExpr);
802 auto *funcParamScope = funcParamCtx.GetScope();
804 auto *funcScope = funcCtx.GetScope();
814 VarBinder(), VarBinder()->GetScope()->AsClassScope()->StaticMethodScope());
835 VarBinder()->GetScope()->FindLocal(importSpec->Local()->Name(), varbinder::ResolveBindingOptions::BINDINGS);
861 ASSERT(VarBinder()->GetScope()->IsClassScope());
868 auto *const clsScope = VarBinder()->GetScope()->AsClassScope();
936 var->SetScope(VarBinder()->GetScope());
956 var->SetScope(VarBinder()->GetScope());
965 auto *curScope = VarBinder()->GetScope();
986 auto *funcParamScope = lexicalScope.GetScope();
998 auto *parentClassScope = VarBinder()->GetScope();
1020 var->SetScope(VarBinder()->GetScope());
1033 BindScopeNode(localScope.GetScope(), interfaceDecl);
1045 BindScopeNode(enumCtx.GetScope(), enumDecl);
1072 classCtx.GetScope()->BindNode(program->GlobalClass());
1073 program->GlobalClass()->SetScope(classCtx.GetScope());
1110 auto *classScope = classCtx.GetScope();
1146 auto curScope = VarBinder()->GetScope();
1188 auto scope = VarBinder()->GetScope();
1198 auto scope = VarBinder()->GetScope();
1223 auto var = VarBinder()->GetScope()->FindLocal(label->Name(), varbinder::ResolveBindingOptions::BINDINGS);
1226 var->SetScope(VarBinder()->GetScope());