Home
last modified time | relevance | path

Searched refs:bindings (Results 1 - 12 of 12) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/util/
H A Dhelpers.cpp406 static void CollectBindingName(ir::AstNode *node, std::vector<ir::Identifier *> *bindings) in CollectBindingName() argument
411 bindings->push_back(node->AsIdentifier()); in CollectBindingName()
418 CollectBindingName(prop, bindings); in CollectBindingName()
424 CollectBindingName(element, bindings); in CollectBindingName()
429 CollectBindingName(node->AsAssignmentPattern()->Left(), bindings); in CollectBindingName()
433 CollectBindingName(node->AsProperty()->Value(), bindings); in CollectBindingName()
437 CollectBindingName(node->AsRestElement()->Argument(), bindings); in CollectBindingName()
447 std::vector<ir::Identifier *> bindings; in CollectBindingNames() local
448 CollectBindingName(node, &bindings); in CollectBindingNames()
449 return bindings; in CollectBindingNames()
[all...]
/arkcompiler/ets_frontend/ets2panda/varbinder/
H A Dscope.cpp159 void Scope::MergeBindings(VariableMap const &bindings) in MergeBindings() argument
161 for (auto &[k, v] : bindings) { in MergeBindings()
354 std::vector<varbinder::Variable *> bindings(LexicalSlots()); in CheckDirectEval()
362 bindings[variable->AsLocalVariable()->LexIdx()] = variable; in CheckDirectEval()
366 for (const auto *variable : bindings) { in CheckDirectEval()
416 std::vector<ir::Identifier *> bindings = util::Helpers::CollectBindingNames(param); in AddParamDecl() local
418 for (auto *binding : bindings) { in AddParamDecl()
538 void GlobalScope::MergeBindings([[maybe_unused]] const VariableMap &bindings) in MergeBindings() argument
964 const auto &bindings = Bindings(); in ConvertToVariableScope() local
965 for (auto &[name, var] : bindings) { in ConvertToVariableScope()
[all...]
H A Dscope.h247 virtual void MergeBindings(VariableMap const &bindings);
878 void MergeBindings(VariableMap const &bindings) override;
/arkcompiler/ets_frontend/es2panda/util/
H A Dhelpers.cpp436 static void CollectBindingName(const ir::AstNode *node, std::vector<const ir::Identifier *> *bindings) in CollectBindingName() argument
441 bindings->push_back(node->AsIdentifier()); in CollectBindingName()
448 CollectBindingName(prop, bindings); in CollectBindingName()
454 CollectBindingName(element, bindings); in CollectBindingName()
459 CollectBindingName(node->AsAssignmentPattern()->Left(), bindings); in CollectBindingName()
463 CollectBindingName(node->AsProperty()->Value(), bindings); in CollectBindingName()
467 CollectBindingName(node->AsRestElement()->Argument(), bindings); in CollectBindingName()
477 std::vector<const ir::Identifier *> bindings; in CollectBindingNames() local
478 CollectBindingName(node, &bindings); in CollectBindingNames()
479 return bindings; in CollectBindingNames()
[all...]
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/scopesInit/
H A DscopesInitPhase.cpp226 std::vector<ir::Identifier *> bindings = util::Helpers::CollectBindingNames(init); in VisitVariableDeclarator() local
227 for (auto *binding : bindings) { in VisitVariableDeclarator()
530 const auto &bindings = VarBinder()->GetScope()->Bindings(); in VisitTSInterfaceDeclaration() local
533 auto res = bindings.find(name); in VisitTSInterfaceDeclaration()
538 if (res == bindings.end()) { in VisitTSInterfaceDeclaration()
585 const auto &bindings = VarBinder()->GetScope()->Bindings(); in VisitTSEnumDeclaration() local
586 auto res = bindings.find(ident); in VisitTSEnumDeclaration()
589 if (res == bindings.end()) { in VisitTSEnumDeclaration()
666 const auto &bindings = VarBinder()->GetScope()->Bindings(); in CreateFuncDecl() local
667 auto res = bindings in CreateFuncDecl()
[all...]
/arkcompiler/ets_frontend/ets2panda/compiler/core/
H A Dpandagen.cpp1813 VReg bindings = AllocReg(); in DirectEval() local
1815 StoreAccumulator(node, bindings); in DirectEval()
1818 StOwnByIndex(node, bindings, index++); in DirectEval()
1820 StOwnByIndex(node, bindings, index++); in DirectEval()
1822 StOwnByIndex(node, bindings, index++); in DirectEval()
1848 StOwnByIndex(node, bindings, index++); in DirectEval()
1850 Sa().Emit<EcmaDirecteval>(node, static_cast<int64_t>(parserStatus), arg0, bindings); in DirectEval()
H A Demitter.cpp329 std::map<util::StringView, es2panda::varbinder::Variable *> bindings(unsortedBindings.begin(), in GenScopeVariableInfoEnd()
331 for (const auto &[_, variable] : bindings) { in GenScopeVariableInfoEnd()
/arkcompiler/ets_frontend/es2panda/parser/
H A DstatementParser.cpp790 const auto &bindings = Binder()->GetScope()->Bindings(); in ParseTsInterfaceDeclaration() local
791 auto res = bindings.find(tsBinding.View()); in ParseTsInterfaceDeclaration()
794 if (res == bindings.end()) { in ParseTsInterfaceDeclaration()
829 if (res == bindings.end()) { in ParseTsInterfaceDeclaration()
1257 const auto &bindings = Binder()->GetScope()->Bindings(); in AddFunctionToBinder() local
1258 auto res = bindings.find(ident); in AddFunctionToBinder()
1259 binder::Decl *currentDecl = res == bindings.end() ? nullptr : res->second->Declaration(); in AddFunctionToBinder()
1262 if (res == bindings.end() || in AddFunctionToBinder()
2072 std::vector<const ir::Identifier *> bindings = util::Helpers::CollectBindingNames(init); in ParseVariableDeclarator() local
2074 for (const auto *binding : bindings) { in ParseVariableDeclarator()
2422 std::vector<const ir::Identifier *> bindings = util::Helpers::CollectBindingNames(decl->Id()); AddExportLocalEntryItem() local
[all...]
/arkcompiler/ets_frontend/es2panda/binder/
H A Dscope.cpp505 std::vector<const ir::Identifier *> bindings = util::Helpers::CollectBindingNames(param); in AddParamDecl() local
507 for (const auto *binding : bindings) { in AddParamDecl()
/arkcompiler/ets_frontend/ets2panda/checker/ets/
H A Dhelpers.cpp1314 const varbinder::Scope::VariableMap &bindings) in BindingsModuleObjectAddProperty()
1316 for (auto [_, var] : bindings) { in BindingsModuleObjectAddProperty()
1366 // NOTE: helps to avoid endless loop in case of recursive imports that uses all bindings in SetPropertiesForModuleObject()
1312 BindingsModuleObjectAddProperty(checker::ETSObjectType *moduleObjType, ir::ETSImportDeclaration *importDecl, const varbinder::Scope::VariableMap &bindings) BindingsModuleObjectAddProperty() argument
/arkcompiler/ets_frontend/ets2panda/checker/
H A DETSchecker.h493 const varbinder::Scope::VariableMap &bindings);
/arkcompiler/ets_frontend/es2panda/test/compiler/js/
H A Dcocos_worker_test.js17961 this.bindings = t;
17964 ds(this.bindings, t.bindings, Jn);
19183 const n = this._layout.bindings[s];
19194 const n = this._layout.bindings[s];
19205 const n = this._layout.bindings[s];
19503 get bindings() {
26968 bindings: [],
26972 bindings: [],
27032 ym.bindings[I
[all...]

Completed in 53 milliseconds