/arkcompiler/ets_frontend/ets2panda/varbinder/ |
H A D | scope.cpp | 326 const auto &varMap = Bindings(); in CheckDirectEval() 566 return Scope::InsertResult {Bindings().end(), false}; in InsertImpl() 582 ASSERT(Bindings().find(name) != Bindings().end()); in IsForeignBinding() 724 auto found = typeAliasScope_->Bindings().find(name); in FindLocal() 725 if (found != typeAliasScope_->Bindings().end()) { in FindLocal() 738 auto res = Bindings().find(interfaceNameView); in FindLocal() 739 if (res != Bindings().end()) { in FindLocal() 748 auto res = Bindings().find(name); in FindLocal() 749 if (res == Bindings() in FindLocal() [all...] |
H A D | ETSBinder.cpp | 537 for (const auto [bindingName, var] : importProgram->GlobalClassScope()->StaticMethodScope()->Bindings()) { in ImportAllForeignBindings() 543 for (const auto [bindingName, var] : importProgram->GlobalClassScope()->StaticFieldScope()->Bindings()) { in ImportAllForeignBindings() 598 const auto &staticMethodBindings = recordRes.front()->GlobalClassScope()->StaticMethodScope()->Bindings(); in FindImportSpecifiersVariable() 605 const auto &staticFieldBindings = res->GlobalClassScope()->StaticFieldScope()->Bindings(); in FindImportSpecifiersVariable() 645 if (FindImportSpecifiersVariable(imported, record.front()->GlobalScope()->Bindings(), record) == nullptr) { in FindImportDeclInReExports() 778 const auto &staticMethodBindings = recordRes.front()->GlobalClassScope()->StaticMethodScope()->Bindings(); in FindStaticBinding() 781 const auto &staticFieldBindings = recordRes.front()->GlobalClassScope()->StaticFieldScope()->Bindings(); in FindStaticBinding() 830 const auto &globalBindings = importGlobalScope->Bindings(); in AddSpecifiersToTopBindings() 1097 if (!(!insRes.second && insRes.first != TopScope()->Bindings().end()) || !(insRes.first->second != var)) { in ImportGlobalPropertiesForNotDefaultedExports()
|
H A D | scope.h | 250 const VariableMap &Bindings() const in Bindings() function in ark::es2panda::ark::es2panda::ark::es2panda::varbinder::Scope 502 this->MergeBindings(paramScope->Bindings()); in BindParamScope()
|
/arkcompiler/ets_frontend/ets2panda/test/unit/lowerings/ |
H A D | scopes_initialization.cpp | 91 const auto &scopeBindings = blockScope->Bindings(); in TEST_F() 92 const auto &parBindings = parScope->Bindings(); in TEST_F() 120 const auto &bodyBindings = bodyScope->Bindings(); in TEST_F()
|
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/scopesInit/ |
H A D | savedBindingsCtx.cpp | 52 if (VarBinder()->GetScope()->Bindings().size() == SavedBindings().size()) { in BindExportDecl() 63 for (const auto &[name, variable] : VarBinder()->GetScope()->Bindings()) { in BindExportDecl()
|
H A D | savedBindingsCtx.h | 26 : varbinder_(varbinder), savedBindings_(varbinder_->GetScope()->Bindings()) in SavedBindingsContext()
|
H A D | scopesInitPhase.cpp | 530 const auto &bindings = VarBinder()->GetScope()->Bindings(); in VisitTSInterfaceDeclaration() 585 const auto &bindings = VarBinder()->GetScope()->Bindings(); in VisitTSEnumDeclaration() 666 const auto &bindings = VarBinder()->GetScope()->Bindings(); in CreateFuncDecl()
|
/arkcompiler/ets_frontend/es2panda/compiler/core/ |
H A D | regScope.cpp | 63 for (const auto &[_, var] : scope->Bindings()) { in LocalRegScope() 108 for (const auto &[_, var] : funcScope->Bindings()) { in FunctionRegScope()
|
/arkcompiler/ets_frontend/ets2panda/compiler/base/ |
H A D | hoisting.cpp | 63 for (const auto &[_, var] : scope->Bindings()) { in Hoist()
|
/arkcompiler/ets_frontend/ets2panda/ast_verifier/ |
H A D | variableHasScope.cpp | 97 if (scope->Bindings().count(var->Name()) == 0) { in ScopeEncloseVariable()
|
/arkcompiler/ets_frontend/es2panda/compiler/base/ |
H A D | hoisting.cpp | 109 for (const auto &[_, var] : scope->Bindings()) { in Hoist()
|
/arkcompiler/ets_frontend/es2panda/ir/base/ |
H A D | scriptFunction.h | 63 scope_->Bindings().erase(THIS_PARAM); in ScriptFunction()
|
/arkcompiler/ets_frontend/es2panda/binder/ |
H A D | scope.h | 340 VariableMap &Bindings() in Bindings() function in Scope 345 const VariableMap &Bindings() const in Bindings() function in Scope 718 this->bindings_ = paramScope->Bindings(); in BindParamScope() 742 this->bindings_.insert(paramScope_->Bindings().begin(), paramScope_->Bindings().end()); in AddBindsFromParam()
|
H A D | binder.cpp | 299 scope->Bindings().insert({argumentsVariable->Name(), argumentsVariable}); in InstantiateArguments() 962 scope_->AsFunctionVariableScope()->ParamScope()->Bindings().insert({decl->Name(), param}); in AddMandatoryParam() 963 scope_->AsFunctionVariableScope()->Bindings().insert({decl->Name(), param}); in AddMandatoryParam()
|
H A D | scope.cpp | 438 scope->Bindings().insert({newDecl->Name(), allocator->New<GlobalVariable>(newDecl, varFlags)}); in AddLocal() 526 functionScope_->Bindings().insert({name, nameVar_}); in BindName()
|
/arkcompiler/ets_frontend/ets2panda/checker/ |
H A D | ETSchecker.cpp | 38 const auto varMap = checker->VarBinder()->TopScope()->Bindings(); in InitBuiltin() 143 const auto varMap = varbinder->TopScope()->Bindings(); in InitializeBuiltins()
|
/arkcompiler/ets_frontend/ets2panda/checker/ets/ |
H A D | object.cpp | 429 for (auto &[_, it] : scope->InstanceFieldScope()->Bindings()) { in ResolveDeclaredFieldsOfObject() 437 for (auto &[_, it] : scope->StaticFieldScope()->Bindings()) { in ResolveDeclaredFieldsOfObject() 448 for (auto &[_, it] : scope->InstanceMethodScope()->Bindings()) { in ResolveDeclaredMethodsOfObject() 465 for (auto &[_, it] : scope->StaticMethodScope()->Bindings()) { in ResolveDeclaredMethodsOfObject() 495 for (auto &[_, it] : scope->InstanceDeclScope()->Bindings()) { in ResolveDeclaredDeclsOfObject() 501 for (auto &[_, it] : scope->StaticDeclScope()->Bindings()) { in ResolveDeclaredDeclsOfObject() 2080 for (const auto &[name, var] : VarBinder()->GetScope()->Bindings()) {
|
H A D | helpers.cpp | 1372 moduleObjType, importDecl, program->GlobalClassScope()->StaticFieldScope()->Bindings()); in SetPropertiesForModuleObject() 1375 moduleObjType, importDecl, program->GlobalClassScope()->StaticMethodScope()->Bindings()); in SetPropertiesForModuleObject() 1378 moduleObjType, importDecl, program->GlobalClassScope()->StaticDeclScope()->Bindings()); in SetPropertiesForModuleObject() 1381 moduleObjType, importDecl, program->GlobalClassScope()->InstanceDeclScope()->Bindings()); in SetPropertiesForModuleObject() 1384 moduleObjType, importDecl, program->GlobalClassScope()->TypeAliasScope()->Bindings()); in SetPropertiesForModuleObject() 1391 for (auto [bindingName, var] : etsBinder->TopScope()->Bindings()) { in SetrModuleObjectTsType()
|
H A D | function.cpp | 1898 auto res = asyncFunc->Scope()->Bindings().find(decl->Name()); in CreateAsyncProxy() 1899 ASSERT(res != asyncFunc->Scope()->Bindings().end()); in CreateAsyncProxy() 2037 for (auto [_, var] : trailingBlock->Scope()->Bindings()) { in TransformTraillingLambda()
|
/arkcompiler/ets_frontend/ets2panda/compiler/core/ |
H A D | emitter.cpp | 328 const auto &unsortedBindings = scope->Bindings(); in GenScopeVariableInfoEnd()
|
/arkcompiler/ets_frontend/es2panda/compiler/core/emitter/ |
H A D | emitter.cpp | 531 for (const auto &[name, variable] : scope->Bindings()) { in GenScopeVariableInfo()
|
/arkcompiler/ets_frontend/es2panda/parser/ |
H A D | statementParser.cpp | 790 const auto &bindings = Binder()->GetScope()->Bindings(); in ParseTsInterfaceDeclaration() 1257 const auto &bindings = Binder()->GetScope()->Bindings(); in AddFunctionToBinder()
|