/arkcompiler/ets_frontend/ets2panda/util/ |
H A D | importPathManager.cpp | 42 StringView ImportPathManager::ResolvePath(const StringView ¤tModulePath, const StringView &importPath) const in ResolvePath() 44 if (importPath.Empty()) { in ResolvePath() 48 if (IsRelativePath(importPath)) { in ResolvePath() 55 resolvedPath.Append(importPath.Mutf8()); in ResolvePath() 61 if (importPath.Mutf8()[0] == pathDelimiter_.at(0)) { in ResolvePath() 63 baseUrl.append(importPath.Mutf8(), 0, importPath.Mutf8().length()); in ResolvePath() 68 if (auto it = dynamicPaths.find(importPath.Mutf8()); it != dynamicPaths.cend() && !it->second.HasDecl()) { in ResolvePath() 69 return AppendExtensionOrIndexFileIfOmitted(importPath); in ResolvePath() 72 const size_t pos = importPath in ResolvePath() [all...] |
H A D | importPathManager.h | 70 StringView ResolvePath(const StringView ¤tModulePath, const StringView &importPath) const;
|
/arkcompiler/ets_frontend/ets2panda/varbinder/ |
H A D | ETSBinder.cpp | 624 const ir::StringLiteral *const importPath) in FindImportDeclInReExports() 644 GetExternalProgram(item->GetETSImportDeclarations()->ResolvedSource()->Str(), importPath); in FindImportDeclInReExports() 657 const util::StringView &imported, const ir::StringLiteral *const importPath) in ValidateImportVariable() 660 ThrowError(importPath->Start(), "Use the default import syntax to import a default exported element"); in ValidateImportVariable() 664 ThrowError(importPath->Start(), in ValidateImportVariable() 669 ThrowError(importPath->Start(), "Imported element not exported '" + var->Declaration()->Name().Mutf8() + "'"); in ValidateImportVariable() 673 static util::StringView ImportLocalName(const ir::ImportSpecifier *importSpecifier, const ir::StringLiteral *importPath, in ImportLocalName() argument 679 auto fnc = [&importPath, &imported](const auto &savedSpecifier) { in ImportLocalName() 680 return importPath->Str() != savedSpecifier.first && imported == savedSpecifier.second; in ImportLocalName() 686 importSpecifiers.push_back(std::make_pair(importPath in ImportLocalName() 621 FindImportDeclInReExports(const ir::ETSImportDeclaration *const import, std::vector<ir::ETSImportDeclaration *> &viewedReExport, const util::StringView &imported, const ir::StringLiteral *const importPath) FindImportDeclInReExports() argument 656 ValidateImportVariable(varbinder::Variable *const var, const ir::ETSImportDeclaration *const import, const util::StringView &imported, const ir::StringLiteral *const importPath) ValidateImportVariable() argument 694 DetectNameConflict(const util::StringView localName, Variable *const var, Variable *const otherVar, const ir::StringLiteral *const importPath, bool overloadAllowed) DetectNameConflict() argument 718 const ir::StringLiteral *const importPath = import->Source(); AddImportSpecifiersToTopBindings() member in ark::es2panda::varbinder::ir 774 FindStaticBinding(const ArenaVector<parser::Program *> &recordRes, const ir::StringLiteral *const importPath) FindStaticBinding() argument 790 GetExternalProgram(const util::StringView &sourceName, const ir::StringLiteral *importPath) GetExternalProgram() argument 818 const ir::StringLiteral *const importPath = path; AddSpecifiersToTopBindings() member in ark::es2panda::varbinder::ir [all...] |
H A D | ETSBinder.h | 123 const ir::StringLiteral *const importPath, bool overloadAllowed); 126 const ir::StringLiteral *importPath); 135 const ir::StringLiteral *const importPath); 141 const util::StringView &imported, const ir::StringLiteral *const importPath); 145 Variable *FindStaticBinding(const ArenaVector<parser::Program *> &recordRes, const ir::StringLiteral *importPath); 235 const ir::StringLiteral *const importPath); 268 util::StringView &imported, const ir::StringLiteral *const importPath) in FindLocalNameForImport() 271 auto checkImportPathAndName = [&importPath, &imported](const auto &savedSpecifier) { in FindLocalNameForImport() 272 return importPath->Str() != savedSpecifier.first && imported == savedSpecifier.second; in FindLocalNameForImport() 278 importSpecifiers_.emplace_back(importPath in FindLocalNameForImport() 267 FindLocalNameForImport(const ir::ImportSpecifier *const importSpecifier, util::StringView &imported, const ir::StringLiteral *const importPath) FindLocalNameForImport() argument [all...] |
/arkcompiler/ets_frontend/ets2panda/evaluate/ |
H A D | scopedDebugInfoPlugin.cpp | 258 auto importPath = pathResolver_.FindNamedImportAll(context_.sourceFilePath.Utf8(), identName.Utf8()); in FindClass() local 259 if (!importPath.empty()) { in FindClass()
|
/arkcompiler/ets_frontend/ets2panda/checker/ets/ |
H A D | helpers.cpp | 1348 const util::StringView &importPath) in SelectEntryOrExternalProgram() 1350 if (importPath.Is(etsBinder->GetGlobalRecordTable()->Program()->AbsoluteName().Mutf8())) { in SelectEntryOrExternalProgram() 1354 auto programList = etsBinder->GetProgramList(importPath); in SelectEntryOrExternalProgram() 1359 void ETSChecker::SetPropertiesForModuleObject(checker::ETSObjectType *moduleObjType, const util::StringView &importPath, in SetPropertiesForModuleObject() argument 1363 SelectEntryOrExternalProgram(static_cast<varbinder::ETSBinder *>(VarBinder()), importPath); in SetPropertiesForModuleObject() 2674 auto importPath = importDecl->ResolvedSource()->Str(); in GetImportSpecifierObjectType() local 2676 SelectEntryOrExternalProgram(static_cast<varbinder::ETSBinder *>(VarBinder()), importPath); in GetImportSpecifierObjectType() 2706 SetPropertiesForModuleObject(lastObjectType, importPath, in GetImportSpecifierObjectType() 1347 SelectEntryOrExternalProgram(varbinder::ETSBinder *etsBinder, const util::StringView &importPath) SelectEntryOrExternalProgram() argument
|
/arkcompiler/ets_runtime/ecmascript/module/ |
H A D | module_path_helper.cpp | 399 CString importPath = res[NORMALIZED_IMPORT_PATH_INDEX]; in ParseNormalizedOhmUrl() local 401 return ConcatUnifiedOhmUrl(bundleName, importPath, version); in ParseNormalizedOhmUrl()
|
/arkcompiler/ets_frontend/ets2panda/parser/ |
H A D | ETSparser.cpp | 1086 auto importPath = Lexer()->GetToken().Ident(); in ParseSourceFromClause() local 1088 auto resolvedImportPath = importPathManager_->ResolvePath(GetProgram()->AbsoluteName(), importPath); in ParseSourceFromClause() 1102 auto *source = AllocNode<ir::StringLiteral>(importPath); in ParseSourceFromClause()
|
/arkcompiler/ets_runtime/ecmascript/module/tests/ |
H A D | ecma_module_test.cpp | 1440 CString importPath = "har/Index"; in HWTEST_F_L0() local 1441 EXPECT_EQ(res[3], importPath); in HWTEST_F_L0() 1457 CString importPath = "har/Index"; in HWTEST_F_L0() local 1458 EXPECT_EQ(res[4], importPath); in HWTEST_F_L0()
|
/arkcompiler/ets_frontend/ets2panda/checker/ |
H A D | ETSchecker.h | 495 void SetPropertiesForModuleObject(checker::ETSObjectType *moduleObjType, const util::StringView &importPath,
|