Home
last modified time | relevance | path

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

/arkcompiler/ets_frontend/ets2panda/util/
H A DimportPathManager.cpp53 auto resolvedPath = UString(currentDirectory, allocator_); in ResolvePath() local
54 resolvedPath.Append(pathDelimiter_); in ResolvePath()
55 resolvedPath.Append(importPath.Mutf8()); in ResolvePath()
57 return AppendExtensionOrIndexFileIfOmitted(resolvedPath.View()); in ResolvePath()
80 auto resolvedPath = arktsConfig_->ResolvePath(importPath.Mutf8()); in ResolvePath() local
81 if (!resolvedPath) { in ResolvePath()
86 return AppendExtensionOrIndexFileIfOmitted(UString(resolvedPath.value(), allocator_).View()); in ResolvePath()
127 void ImportPathManager::AddToParseList(const StringView &resolvedPath, const ImportFlags importFlags) in AddToParseList() argument
131 const auto parseInfo = ParseInfo {resolvedPath, false, isImplicitPackageImport}; in AddToParseList()
133 if (ark::os::file::File::IsDirectory(resolvedPath in AddToParseList()
[all...]
H A Darktsconfig.cpp140 auto resolvedPath = MakeAbsolute(relPath, base); in ResolveConfigLocation() local
142 while (!fs::exists(resolvedPath)) { in ResolveConfigLocation()
143 resolvedPath = MakeAbsolute(relPath, JoinPaths(newBase, "node_modules")); in ResolveConfigLocation()
149 return resolvedPath; in ResolveConfigLocation()
H A DimportPathManager.h71 void AddToParseList(const StringView &resolvedPath, ImportFlags importFlags);
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/
H A Dfile_stream.cpp72 char resolvedPath[PATH_MAX] = {0}; in FilePathValid() local
73 auto result = realpath(fileName.c_str(), resolvedPath); in FilePathValid()
74 if (result == resolvedPath || errno == ENOENT) { in FilePathValid()
75 return std::make_pair(true, std::string(resolvedPath)); in FilePathValid()
/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/
H A Dfilesystem.cpp27 std::array<char, PATH_MAX> resolvedPath; in GetAbsolutePath() local
28 auto res = realpath(path.data(), resolvedPath.data()); in GetAbsolutePath()
/arkcompiler/ets_runtime/ecmascript/extractortool/src/
H A Dfile_path_utils.cpp30 char* realpath(const char* path, char* resolvedPath) in realpath() argument
35 if (strcpy_s(resolvedPath, PATH_MAX, path) != 0) { in realpath()
38 return resolvedPath; in realpath()
416 char resolvedPath[PATH_MAX + 1] = { 0 }; in MakeFilePath() local
417 if (realpath(path.c_str(), resolvedPath) != nullptr) { in MakeFilePath()
418 fileName = resolvedPath; in MakeFilePath()
435 if (realpath(path.c_str(), resolvedPath) == nullptr) { in MakeFilePath()
439 fileName = resolvedPath; in MakeFilePath()
/arkcompiler/ets_runtime/ecmascript/dfx/cpu_profiler/
H A Dcpu_profiler.cpp529 CVector<char> resolvedPath(PATH_MAX); in CheckFileName()
530 auto result = realpath(fileName.c_str(), resolvedPath.data()); in CheckFileName()
535 std::ofstream file(resolvedPath.data()); in CheckFileName()
541 absoluteFilePath = resolvedPath.data(); in CheckFileName()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/topLevelStmts/
H A DimportExportDecls.cpp40 bool ImportExportDecls::MatchResolvedPathWithProgram(std::string_view resolvedPath, parser::Program *prog) in MatchResolvedPathWithProgram() argument
48 if (prog->AbsoluteName().Is(resolvedPath)) { in MatchResolvedPathWithProgram()
51 if (prog->IsPackageModule() && prog->SourceFileFolder().Is(resolvedPath)) { in MatchResolvedPathWithProgram()
H A DimportExportDecls.h73 bool MatchResolvedPathWithProgram(std::string_view resolvedPath, parser::Program *prog);
/arkcompiler/ets_frontend/ets2panda/
H A Des2panda.cpp55 : filePath(fn), fileFolder(DirName(fn)), source(s), resolvedPath(DirName(rp)), isModule(m) in SourceFile()
H A Des2panda.h91 std::string_view resolvedPath {};
/arkcompiler/ets_frontend/ets2panda/parser/program/
H A Dprogram.h198 resolvedFilePath_ = util::UString(sourceFile.resolvedPath, Allocator()).View(); in SetSource()

Completed in 8 milliseconds