/arkcompiler/ets_frontend/ts2panda/src/ |
D | ecmaModule.ts | 28 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 …]
|
D | pandasm.ts | 207 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;
|
D | modules.ts | 42 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);
|
D | recorder.ts | 483 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 …]
|
D | typeChecker.ts | 152 let localName = jshelpers.getTextOfIdentifierOrLiteral(propertyAccessExpression.expression); 154 if (TypeRecorder.getInstance().inNampespaceMap(localName)) { 155 let redirectPath = TypeRecorder.getInstance().getPathForNamespace(localName)!;
|
D | ts2panda.ts | 565 …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/ |
D | sourceTextModuleRecord.h | 56 …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()
|
D | sourceTextModuleRecord.cpp | 192 util::StringView localName = parser::SourceTextModuleRecord::DEFAULT_LOCAL_NAME; in RemoveDefaultLocalExportEntry() local 193 localExportEntries_.erase(localName); in RemoveDefaultLocalExportEntry()
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/accessor/ |
D | module_data_accessor.cpp | 50 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/ |
D | moduleRecordEmitter.cpp | 43 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/ |
D | js_module_manager.h | 49 JSTaggedValue GetModuleNamespace(JSTaggedValue localName); 50 JSTaggedValue GetModuleNamespace(JSTaggedValue localName, JSTaggedValue currentFunc); 51 JSTaggedValue GetModuleNamespaceInternal(JSTaggedValue localName, JSTaggedValue currentModule);
|
D | js_module_manager.cpp | 613 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()
|
D | js_module_source_text.cpp | 634 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/ |
D | binder.cpp | 202 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()
|
D | scope.cpp | 375 …eScope::ConvertLocalVariableToModuleVariable(ArenaAllocator *allocator, util::StringView localName) in ConvertLocalVariableToModuleVariable() argument 377 auto res = bindings_.find(localName); in ConvertLocalVariableToModuleVariable()
|
/arkcompiler/ets_runtime/ecmascript/module/tests/ |
D | ecma_module_test.cpp | 151 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/ |
D | debugger_api.cpp | 398 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/ |
D | statementParser.cpp | 2168 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 2296 …localName = declNode->IsFunctionDeclaration() ? declNode->AsFunctionDeclaration()->Function()->Get… in AddExportDefaultEntryItem() [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | bytecode_info_collector.cpp | 575 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/ |
D | ts2abc.cpp | 1154 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/ |
D | slow_runtime_stub.h | 168 static JSTaggedValue GetModuleNamespace(JSThread *thread, JSTaggedValue localName);
|
D | slow_runtime_stub.cpp | 1130 JSTaggedValue SlowRuntimeStub::GetModuleNamespace(JSThread *thread, JSTaggedValue localName) in GetModuleNamespace() argument 1132 return RuntimeStubs::RuntimeGetModuleNamespace(thread, localName); in GetModuleNamespace()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | object_factory.h | 589 const JSHandle<JSTaggedValue> &localName); 592 const JSHandle<JSTaggedValue> &exportName, const JSHandle<JSTaggedValue> &localName,
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
D | runtime_stubs.h | 495 … static inline JSTaggedValue RuntimeGetModuleNamespace(JSThread *thread, JSTaggedValue localName); 496 static inline JSTaggedValue RuntimeGetModuleNamespace(JSThread *thread, JSTaggedValue localName,
|
D | runtime_stubs-inl.h | 1127 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()
|