Home
last modified time | relevance | path

Searched refs:fs (Results 1 - 13 of 13) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/util/
H A Darktsconfig.cpp35 namespace fs = std::filesystem;
38 namespace fs = std::experimental::filesystem;
60 return fs::path(path).is_absolute(); in IsAbsolute()
69 return (fs::path(a) / b).string(); in JoinPaths()
79 return fs::path(path).parent_path().string(); in ParentPath()
92 ASSERT(fs::path(base_).is_absolute()); in Pattern()
102 fs::path relative; in GetSearchRoot()
116 ASSERT(fs::path(path).is_absolute()); in Match()
117 fs::path value = fs in Match()
[all...]
H A DimportPathManager.cpp26 namespace fs = std::filesystem;
29 namespace fs = std::experimental::filesystem;
137 for (auto const &entry : fs::directory_iterator(resolvedPath.Mutf8())) { in AddToParseList()
138 if (!fs::is_regular_file(entry) || !IsCompatibleExtension(entry.path().extension().string())) { in AddToParseList()
/arkcompiler/runtime_core/static_core/tools/ark_js_napi_cli/utils/
H A Dutils.cpp33 std::ifstream fs(path, std::ios::binary); in GetAsset()
34 if (!fs) { in GetAsset()
39 fs.unsetf(std::ios::skipws); in GetAsset()
42 fs.seekg(0, std::ios::end); in GetAsset()
43 size = fs.tellg(); in GetAsset()
44 fs.seekg(0, std::ios::beg); in GetAsset()
48 content.insert(content.begin(), std::istream_iterator<uint8_t>(fs), std::istream_iterator<uint8_t>()); in GetAsset()
/arkcompiler/ets_frontend/arkguard/scripts/
H A Dexecute_result_statistics.js16 const fs = require('fs');
47 const files = fs.readdirSync(directoryPath);
52 if (fs.statSync(filePath).isDirectory()) {
91 const hasExpectationFile = fs.existsSync(expectationPath);
92 const hasExpectationCache = fs.existsSync(expectationCachePath);
93 const hasResultCache = fs.existsSync(resultCachePath);
97 const hasExpectationUnobfuscation = fs.existsSync(expectUnobfuscationPath);
98 const hasResultUnobfuscation = fs.existsSync(resultUnobfuscationPath);
115 let actual = fs
[all...]
H A Dobfuscate_script.js16 const fs = require('fs');
35 const currentEntries = fs.readdirSync(rootDirPath);
52 if (fs.statSync(currentPath).isDirectory()) {
/arkcompiler/ets_runtime/tools/ap_file_viewer/
H A Dwebpack.config.js18 const fs = require('fs');
27 fs.readdir(sourcePath, async (err, files) => {
41 if (fs.lstatSync(source).isFile()) {
43 if (!fs.existsSync(dirPath)) {
44 await fs.promises.mkdir(dirPath, {recursive: true});
46 await fs.promises.copyFile(source, target);
52 if (fs.existsSync(directoryPath)) {
53 files = fs.readdirSync(directoryPath);
56 if (fs
[all...]
/arkcompiler/ets_runtime/tools/circuit_viewer/src/engine/graphics/
H A DXShader.js86 var fs = gl.createShader(gl.FRAGMENT_SHADER); variable
87 gl.shaderSource(fs, fss);
88 gl.compileShader(fs);
89 if (!gl.getShaderParameter(fs, gl.COMPILE_STATUS)) {
91 'error occured compiling the shaders:' + gl.getShaderInfoLog(fs)
99 gl.attachShader(ret, fs);
108 gl.deleteShader(fs);
/arkcompiler/ets_frontend/es2panda/scripts/
H A Dts2abc.js18 const fs = require("fs");
31 if (fs.existsSync(path.join(arkDir, 'build-win'))) {
33 } else if (fs.existsSync(path.join(arkDir, 'build-mac'))) {
35 } else if (!fs.existsSync(path.join(arkDir, 'build'))) {
49 if (!fs.existsSync(es2abc)) {
/arkcompiler/ets_frontend/es2panda/util/
H A DsymbolTable.cpp38 std::fstream fs; in Initialize() local
39 fs.open(panda::os::file::File::GetExtendedFilePath(dumpSymbolTable_), in Initialize()
41 if (!fs.is_open()) { in Initialize()
48 fs.close(); in Initialize()
141 std::fstream fs; in WriteSymbolTable() local
142 fs.open(panda::os::file::File::GetExtendedFilePath(dumpSymbolTable_), in WriteSymbolTable()
144 if (fs.is_open()) { in WriteSymbolTable()
145 fs << symbolTableContent_.str(); in WriteSymbolTable()
146 fs.close(); in WriteSymbolTable()
/arkcompiler/runtime_core/libpandabase/utils/
H A Dtimers.cpp46 std::ofstream fs; in WriteFile() local
47 fs.open(panda::os::file::File::GetExtendedFilePath(perfFile)); in WriteFile()
48 if (!fs.is_open()) { in WriteFile()
52 fs << ss.str(); in WriteFile()
53 fs.close(); in WriteFile()
/arkcompiler/ets_runtime/ecmascript/napi/test/
H A Ddfx_jsnapi_tests.cpp62 bool MatchJSONLineHeader(std::fstream &fs, const std::string filePath, int lineNum, CString lineContent) in MatchJSONLineHeader() argument
66 fs.open(filePath.c_str(), std::ios::in); in MatchJSONLineHeader()
67 while (getline(fs, tempLineContent)) { in MatchJSONLineHeader()
69 fs.close(); in MatchJSONLineHeader()
70 fs.clear(); in MatchJSONLineHeader()
75 fs.close(); in MatchJSONLineHeader()
76 fs.clear(); in MatchJSONLineHeader()
/arkcompiler/runtime_core/static_core/libllvmbackend/object_code/
H A Dcreated_object_file.cpp132 llvm::raw_fd_ostream dest(output, errorCode, llvm::sys::fs::FA_Write); in WriteTo()
/arkcompiler/ets_frontend/es2panda/test/compiler/js/
H A Dcocos_worker_test.js1288 const {getUserDataPath: s, readJsonSync: n, makeDirSync: r, writeFileSync: o, deleteFile: a, rmdirSync: l} = t("./jsb-fs-utils");
1394 "./jsb-fs-utils": 7
2194 fs: s,
2461 const {downloadFile: n, readText: r, readArrayBuffer: o, readJson: a, getUserDataPath: l, initJsbDownloader: h} = t("./jsb-fs-utils");
2766 "./jsb-fs-utils": 7
16601 let fs;
16612 }(fs || (fs = {}));
18470 return fs;
19284 this._gfxAPI = fs
[all...]

Completed in 29 milliseconds