Home
last modified time | relevance | path

Searched refs:localName (Results 1 – 25 of 32) sorted by relevance

12

/arkcompiler/ets_frontend/ts2panda/src/
DecmaModule.ts28 localName: string | undefined; property in Entry
32 …constructor(node: ts.Node, exportName: string | undefined, localName: string | undefined, importNa…
35 this.localName = localName;
73 …addImportEntry(node: ts.Node, importName: string, localName: string, moduleRequest: string): void {
74 …let importEntry: Entry = new Entry(node, undefined, localName, importName, this.addModuleRequest(m…
77 this.regularImportEntries.set(localName, importEntry);
88 addStarImportEntry(node: ts.Node, localName: string, moduleRequest: string): void {
89 …let starImportEntry: Entry = new Entry(node, undefined, localName, undefined, this.addModuleReques…
98 addLocalExportEntry(node: ts.Node, exportName: string, localName: string): void {
99 let localExportEntry: Entry = new Entry(node, exportName, localName, undefined);
[all …]
Dpandasm.ts207 public localName: string; property in RegularImportEntry
211 constructor(localName: string, importName: string, moduleRequest: number) {
212 this.localName = localName;
219 public localName: string; property in NamespaceImportEntry
222 constructor(localName: string, moduleRequest: number) {
223 this.localName = localName;
229 public localName: string; property in LocalExportEntry
232 constructor(localName: string, exportName: string) {
233 this.localName = localName;
Dmodules.ts42 addLocalName(localName: string, importName: string): void {
43 if (this.bingdingNameMap.has(localName)) {
44 …ode, DiagnosticCode.Duplicate_identifier_0, jshelpers.getSourceFileOfNode(this.node), [localName]);
46 this.bingdingNameMap.set(localName, importName);
Drecorder.ts483 let localName: string = jshelpers.getTextOfIdentifierOrLiteral(element.name);
484 … = element.propertyName ? jshelpers.getTextOfIdentifierOrLiteral(element.propertyName) : localName;
485 scope.setDecls(new ConstDecl(localName, element, ModuleVarKind.IMPORTED));
486 scope.module().addImportEntry(element, importName, localName, moduleRequest);
496 let localName = jshelpers.getTextOfIdentifierOrLiteral(importClause.name);
497 scope.setDecls(new ConstDecl(localName, importClause.name, ModuleVarKind.IMPORTED));
498 scope.module().addImportEntry(importClause, "default", localName, moduleRequest);
553 …let localName: string = element.propertyName ? jshelpers.getTextOfIdentifierOrLiteral(element.prop…
554 scope.module().addLocalExportEntry(element, exportName, localName);
595 … let localName = node.name ? jshelpers.getTextOfIdentifierOrLiteral(node.name) : "*default*";
[all …]
DtypeChecker.ts152 let localName = jshelpers.getTextOfIdentifierOrLiteral(propertyAccessExpression.expression);
154 if (TypeRecorder.getInstance().inNampespaceMap(localName)) {
155 let redirectPath = TypeRecorder.getInstance().getPathForNamespace(localName)!;
Dts2panda.ts565 …moduleRecord.regularImportEntries.push(new RegularImportEntry(e.localName!, e.importName!, e.modul…
569 …moduleRecord.namespaceImportEntries.push(new NamespaceImportEntry(e.localName!, e.moduleRequest!));
574 moduleRecord.localExportEntries.push(new LocalExportEntry(e.localName!, e.exportName!));
/arkcompiler/ets_frontend/es2panda/parser/module/
DsourceTextModuleRecord.h56 …ImportEntry(const util::StringView localName, const util::StringView importName, int moduleRequest… in ImportEntry()
58 : moduleRequestIdx_(moduleRequestIdx), localName_(localName), importName_(importName), in ImportEntry()
60 … ImportEntry(const util::StringView localName, int moduleRequestIdx, const ir::Identifier *localId) in ImportEntry()
61 : moduleRequestIdx_(moduleRequestIdx), localName_(localName), localId_(localId) {} in ImportEntry()
74 ExportEntry(const util::StringView exportName, const util::StringView localName, in ExportEntry()
76 : moduleRequestIdx_(-1), exportName_(exportName), localName_(localName), in ExportEntry()
DsourceTextModuleRecord.cpp192 util::StringView localName = parser::SourceTextModuleRecord::DEFAULT_LOCAL_NAME; in RemoveDefaultLocalExportEntry() local
193 localExportEntries_.erase(localName); in RemoveDefaultLocalExportEntry()
/arkcompiler/ets_runtime/ecmascript/jspandafile/accessor/
Dmodule_data_accessor.cpp50 JSMutableHandle<JSTaggedValue> localName(thread, globalConstants->GetUndefined()); in EnumerateImportEntry() local
58 localName.Update(JSTaggedValue(factory->GetRawStringFromStringTable(sd))); in EnumerateImportEntry()
66 … JSHandle<ImportEntry> importEntry = factory->NewImportEntry(moduleRequest, importName, localName); in EnumerateImportEntry()
82 localName.Update(JSTaggedValue(factory->GetRawStringFromStringTable(sd))); in EnumerateImportEntry()
87 … JSHandle<ImportEntry> importEntry = factory->NewImportEntry(moduleRequest, importName, localName); in EnumerateImportEntry()
112 JSHandle<JSTaggedValue> localName(thread, factory->GetRawStringFromStringTable(sd)); in EnumerateLocalExportEntry() local
117 if (!JSTaggedValue::StrictEqual(thread, distinctLocalName, localName)) { in EnumerateLocalExportEntry()
118 distinctLocalName.Update(localName); in EnumerateLocalExportEntry()
121 …calExportEntry> localExportEntry = factory->NewLocalExportEntry(exportName, localName, localIndex); in EnumerateLocalExportEntry()
/arkcompiler/ets_frontend/es2panda/compiler/core/emitter/
DmoduleRecordEmitter.cpp43 panda::pandasm::LiteralArray::Literal localName = { in GenRegularImportEntries() local
45 buffer_.emplace_back(localName); in GenRegularImportEntries()
65 panda::pandasm::LiteralArray::Literal localName = { in GenNamespaceImportEntries() local
67 buffer_.emplace_back(localName); in GenNamespaceImportEntries()
84 panda::pandasm::LiteralArray::Literal localName = { in GenLocalExportEntries() local
86 buffer_.emplace_back(localName); in GenLocalExportEntries()
/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_manager.h49 JSTaggedValue GetModuleNamespace(JSTaggedValue localName);
50 JSTaggedValue GetModuleNamespace(JSTaggedValue localName, JSTaggedValue currentFunc);
51 JSTaggedValue GetModuleNamespaceInternal(JSTaggedValue localName, JSTaggedValue currentModule);
Djs_module_manager.cpp613 JSTaggedValue ModuleManager::GetModuleNamespace(JSTaggedValue localName) in GetModuleNamespace() argument
616 return GetModuleNamespaceInternal(localName, currentModule); in GetModuleNamespace()
619 JSTaggedValue ModuleManager::GetModuleNamespace(JSTaggedValue localName, JSTaggedValue currentFunc) in GetModuleNamespace() argument
622 return GetModuleNamespaceInternal(localName, currentModule); in GetModuleNamespace()
625 JSTaggedValue ModuleManager::GetModuleNamespaceInternal(JSTaggedValue localName, JSTaggedValue curr… in GetModuleNamespaceInternal() argument
635 int entry = NameDictionary::Cast(moduleEnvironment.GetTaggedObject())->FindEntry(localName); in GetModuleNamespaceInternal()
Djs_module_source_text.cpp634 JSMutableHandle<JSTaggedValue> localName(thread, globalConstants->GetUndefined()); in ModuleDeclarationEnvironmentSetup() local
637 localName.Update(in->GetLocalName()); in ModuleDeclarationEnvironmentSetup()
663 …JSHandle<NameDictionary> newMap = NameDictionary::Put(thread, mapHandle, localName, moduleNamespac… in ModuleDeclarationEnvironmentSetup()
687 … JSHandle<NameDictionary> newMap = NameDictionary::Put(thread, mapHandle, localName, resolution, in ModuleDeclarationEnvironmentSetup()
1220 JSTaggedValue localName = ee->GetLocalName(); in FindByExport() local
1221 int entry = dict->FindEntry(localName); in FindByExport()
1407 JSMutableHandle<JSTaggedValue> localName(thread, thread->GlobalConstants()->GetUndefined()); in ResolveLocalExport() local
1429 localName.Update(ee->GetLocalName()); in ResolveLocalExport()
1430 … return JSHandle<JSTaggedValue>::Cast(factory->NewResolvedBindingRecord(module, localName)); in ResolveLocalExport()
/arkcompiler/ets_frontend/es2panda/binder/
Dbinder.cpp202 auto localName = it->AsExportSpecifier()->Local()->Name(); in ValidateExportDecl() local
206 if (currentScope->FindLocal(localName, ResolveBindingOptions::ALL) != nullptr || in ValidateExportDecl()
207 … (currentScope->IsTSModuleScope() && (currentScope->InLocalTSBindings(localName) || in ValidateExportDecl()
208 currentScope->AsTSModuleScope()->InExportBindings(localName)))) { in ValidateExportDecl()
216 ThrowUndeclaredExport(it->AsExportSpecifier()->Local()->Start(), localName); in ValidateExportDecl()
219 if (scope_->FindLocal(localName) == nullptr) { in ValidateExportDecl()
222 if (scope_->InLocalTSBindings(localName) || in ValidateExportDecl()
223 scope_->FindLocal(localName, ResolveBindingOptions::INTERFACES)) { in ValidateExportDecl()
226 ThrowUndeclaredExport(it->AsExportSpecifier()->Local()->Start(), localName); in ValidateExportDecl()
228 scope_->AsModuleScope()->ConvertLocalVariableToModuleVariable(Allocator(), localName); in ValidateExportDecl()
Dscope.cpp375 …eScope::ConvertLocalVariableToModuleVariable(ArenaAllocator *allocator, util::StringView localName) in ConvertLocalVariableToModuleVariable() argument
377 auto res = bindings_.find(localName); in ConvertLocalVariableToModuleVariable()
/arkcompiler/ets_runtime/ecmascript/module/tests/
Decma_module_test.cpp151 CString localName = "foo"; in HWTEST_F_L0() local
155 …JSTaggedValue> localNameHandle = JSHandle<JSTaggedValue>::Cast(objFactory->NewFromUtf8(localName)); in HWTEST_F_L0()
162 …Handle<JSTaggedValue> storeKey = JSHandle<JSTaggedValue>::Cast(objFactory->NewFromUtf8(localName)); in HWTEST_F_L0()
166 …SHandle<JSTaggedValue> loadKey = JSHandle<JSTaggedValue>::Cast(objFactory->NewFromUtf8(localName)); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/debugger/
Ddebugger_api.cpp398 JSTaggedValue localName = ee->GetLocalName(); in GetImportModule() local
401 … if (localName.IsString() && !JSTaggedValue::SameValue(importName, starString.GetTaggedValue())) { in GetImportModule()
402 std::string varName = EcmaStringAccessor(localName).ToStdString(); in GetImportModule()
443 std::string localName = EcmaStringAccessor(localKey).ToStdString(); in GetModuleVariableIndex() local
445 if (localName == name || exportName == name) { in GetModuleVariableIndex()
712 JSTaggedValue localName = ee->GetLocalName(); in GetImportVariables() local
713 name.Update(localName); in GetImportVariables()
/arkcompiler/ets_frontend/es2panda/parser/
DstatementParser.cpp2168 auto localName = it->AsImportDefaultSpecifier()->Local()->Name(); in AddImportEntryItem() local
2172 localName, importName, moduleRequestIdx, localId, nullptr); in AddImportEntryItem()
2177 auto localName = it->AsImportNamespaceSpecifier()->Local()->Name(); in AddImportEntryItem() local
2180 localName, moduleRequestIdx, localId); in AddImportEntryItem()
2185 auto localName = it->AsImportSpecifier()->Local()->Name(); in AddImportEntryItem() local
2190 localName, importName, moduleRequestIdx, localId, importId); in AddImportEntryItem()
2231 auto localName = exportSpecifier->Local()->Name(); in AddExportNamedEntryItem() local
2235 exportName, localName, exportId, localId); in AddExportNamedEntryItem()
2294 util::StringView localName = parser::SourceTextModuleRecord::DEFAULT_LOCAL_NAME; in AddExportDefaultEntryItem() local
2296localName = declNode->IsFunctionDeclaration() ? declNode->AsFunctionDeclaration()->Function()->Get… in AddExportDefaultEntryItem()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/
Dbytecode_info_collector.cpp575 JSHandle<JSTaggedValue> localName(thread, currentExportEntry->GetLocalName()); in CollectExportIndexs() local
586 !JSTaggedValue::SameValue(localName, exportLocalNameHandle)) { in CollectExportIndexs()
587 exportName = localName; in CollectExportIndexs()
/arkcompiler/ets_frontend/ts2panda/ts2abc/
Dts2abc.cpp1154 panda::pandasm::LiteralArray::Literal localName = { in ParseRegularImportEntries() local
1156 moduleLiteralArray.emplace_back(localName); in ParseRegularImportEntries()
1176 panda::pandasm::LiteralArray::Literal localName = { in ParseNamespaceImportEntries() local
1178 moduleLiteralArray.emplace_back(localName); in ParseNamespaceImportEntries()
1194 panda::pandasm::LiteralArray::Literal localName = { in ParseLocalExportEntries() local
1196 moduleLiteralArray.emplace_back(localName); in ParseLocalExportEntries()
/arkcompiler/ets_runtime/ecmascript/interpreter/
Dslow_runtime_stub.h168 static JSTaggedValue GetModuleNamespace(JSThread *thread, JSTaggedValue localName);
Dslow_runtime_stub.cpp1130 JSTaggedValue SlowRuntimeStub::GetModuleNamespace(JSThread *thread, JSTaggedValue localName) in GetModuleNamespace() argument
1132 return RuntimeStubs::RuntimeGetModuleNamespace(thread, localName); in GetModuleNamespace()
/arkcompiler/ets_runtime/ecmascript/
Dobject_factory.h589 const JSHandle<JSTaggedValue> &localName);
592 const JSHandle<JSTaggedValue> &exportName, const JSHandle<JSTaggedValue> &localName,
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs.h495 … static inline JSTaggedValue RuntimeGetModuleNamespace(JSThread *thread, JSTaggedValue localName);
496 static inline JSTaggedValue RuntimeGetModuleNamespace(JSThread *thread, JSTaggedValue localName,
Druntime_stubs-inl.h1127 JSTaggedValue RuntimeStubs::RuntimeGetModuleNamespace(JSThread *thread, JSTaggedValue localName) in RuntimeGetModuleNamespace() argument
1129 return thread->GetCurrentEcmaContext()->GetModuleManager()->GetModuleNamespace(localName); in RuntimeGetModuleNamespace()
1132 JSTaggedValue RuntimeStubs::RuntimeGetModuleNamespace(JSThread *thread, JSTaggedValue localName, in RuntimeGetModuleNamespace() argument
1135 … return thread->GetCurrentEcmaContext()->GetModuleManager()->GetModuleNamespace(localName, jsFunc); in RuntimeGetModuleNamespace()

12