Home
last modified time | relevance | path

Searched refs:filePath (Results 1 – 25 of 110) sorted by relevance

12345

/interface/sdk-js/build-tools/api_diff/src/
Dutil.js25 (filePath) => path.basename(filePath).endsWith('.d.ts'), allFiles);
36 const filePath = path.join(dir, element);
37 const status = fs.statSync(filePath);
39 internalListFiles(filePath, filter, output);
40 } else if (filter(filePath)) {
41 output.push(filePath);
Dapi_collector.js361 constructor(packageName, filePath) { argument
363 this.dtsPath = filePath;
374 function collectApi(filePath, rootDir, resultMap) { argument
376 const apiFileName = path.basename(filePath, '.d.ts');
377 const fileContent = fs.readFileSync(filePath, 'utf-8');
379 const isArkUI = isInDirectory(path.resolve(rootDir, 'component'), filePath);
380 const packageName = isArkUI ? 'ArkUI' : path.relative(rootDir, filePath);
381 const dtsPath = path.relative(rootDir, filePath).replace(/\\/g, '/');
/interface/sdk-js/build-tools/dts_parser/src/coreImpl/parser/
Dparser.ts44 files.forEach((filePath: string) => {
45 Parser.parseFile(fileDir, filePath, apiMap);
58 static parseFile(fileDir: string, filePath: string, apiMap?: FilesMap): FilesMap {
59 if (!fs.existsSync(filePath)) {
62 const fileContent: string = fs.readFileSync(filePath, StringConstant.UTF8);
64 relFilePath = path.relative(fileDir, filePath);
66 .basename(filePath)
73 sourceFileInfo.setIsStruct(filePath.endsWith(StringConstant.ETS_EXTENSION));
126 for (const filePath of clonedApiMap.keys()) { constant
127 const fileMap: FileInfoMap = apiMap.get(filePath) as FileInfoMap;
[all …]
/interface/sdk-js/build-tools/collect_application_api/src/
Dutils.js160 FileSystem.listFiles(srcPath, (filePath) => {
161 const fileName = path.basename(filePath);
230 …FileSystem.listFiles(libPath, (filePath) => path.basename(filePath).endsWith('.d.ts'), this.esLibs…
231 …FileSystem.listFiles(libPath, (filePath) => path.basename(filePath).endsWith('.d.ets'), this.esLib…
241 FileSystem.listFiles(subDir, (filePath) => path.basename(filePath).endsWith('.d.ts'), dest);
242 FileSystem.listFiles(subDir, (filePath) => path.basename(filePath).endsWith('.d.ets'), dest);
250 const filePath = path.join(dir, element);
251 const status = fs.statSync(filePath);
253 this.listFiles(filePath, filter, dest);
254 } else if (filter(filePath)) {
[all …]
/interface/sdk-js/build-tools/jsdoc_format_plugin/src/utils/
DfileUtils.ts29 const filePath = path.join(dirName, dir.name); constant
32 files.push(filePath);
36 files.push(filePath);
40 files.push(...FileUtils.readFilesInDir(filePath, filter));
45 static writeStringToFile(str: string, filePath: string): void {
46 const parentDir = path.dirname(filePath);
50 fs.writeFileSync(filePath, str);
/interface/sdk-js/build-tools/dts_parser/src/coreImpl/checker/src/
Dcompile_info.ts36 filePath: string,
47 const location = `${filePath}(line:${pos.line},character:${pos.character})`;
54 .setFilePath(filePath)
67 .setBaseName(filePath.substring(filePath.lastIndexOf('/') + 1, filePath.length));
Dts_check_plugin.ts53 files.forEach((filePath: string, index: number) => {
55 filePath,
94 const filePath: string = item.file?.fileName as string; constant
95 const fileName: string = filePath.substring(filePath.indexOf('api'), filePath.length);
118 const filePath: string = item.file?.fileName as string; constant
119 const fileName: string = filePath.substring(filePath.indexOf('api'), filePath.length);
Dcheck_hump.ts112 const filePath: string = apiInfo.getFilePath(); constant
117 … (apiType === ApiType.CONSTANT && filePath.indexOf(`component${path.sep}ets${path.sep}`) === -1)
146 filePath,
172 const filePath: string = fileApiInfo.getFilePath(); constant
173 if (filePath.indexOf(`component${path.sep}ets${path.sep}`) !== -1) {
190 …const basename: string = path.basename(filePath).replace(new RegExp(StringConstant.DTS_EXTENSION, …
205 filePath,
Dapi_check_plugin.ts54 files.forEach((filePath: string, index: number) => {
56 const fileParseResult: FilesMap = Check.parseAPICodeStyle(filePath);
59 const currFileInfo = fileParseResult.get(filePath);
90 static parseAPICodeStyle(filePath: string): FilesMap {
91 const fileDir: string = filePath.substring(0, filePath.lastIndexOf('\\'));
92 const parseResult: FilesMap = Parser.parseFile(fileDir, filePath);
/interface/sdk-js/build-tools/dts_parser/src/utils/
DFileUtils.ts48 const filePath: string = path.join(dirName, dir.name); constant
51 files.push(filePath);
55 files.push(filePath);
59 files.push(...FileUtils.readFilesInDir(filePath, filter));
64 static writeStringToFile(str: string, filePath: string): void {
65 const parentDir: string = path.dirname(filePath);
69 fs.writeFileSync(filePath, str);
DcheckUtils.ts150 const filePath: string = path.join(dir, element); constant
151 const status: Stats = fs.statSync(filePath);
153 ObtainFullPath.getFullFiles(filePath, utFiles);
155 if (/\.d\.ts/.test(filePath) || /\.d\.ets/.test(filePath) || /\.ts/.test(filePath)) {
156 utFiles.push(filePath);
/interface/sdk-js/build-tools/api_check_plugin/src/
Dapi_check_plugin.js49 filePathArr.forEach(filePath => {
51 splitPath(filePath, pathElements);
53 mdFiles.push(filePath);
60 uFiles.forEach((filePath, index) => {
62 if (/\.d\.ts/.test(filePath) && fs.existsSync(filePath)) {
63 const content = fs.readFileSync(filePath, 'utf-8');
64 const fileName = path.basename(filePath).replace(/.d.ts/g, '.ts');
70 transformers: { before: [callback(filePath)] },
/interface/sdk-js/api/
D@ohos.telephony.vcard.d.ts57 …function importVCard(context: Context, filePath: string, accountId: number, callback: AsyncCallbac…
82 function importVCard(context: Context, filePath: string, accountId?: number): Promise<void>;
103 function importVCard(context: Context, filePath: string, callback: AsyncCallback<void>): void;
D@ohos.file.fs.d.ts3725 declare function readLines(filePath: string, options?: Options): Promise<ReaderIterator>;
3747 declare function readLines(filePath: string, callback: AsyncCallback<ReaderIterator>): void;
3770 declare function readLines(filePath: string, options: Options, callback: AsyncCallback<ReaderIterat…
3794 declare function readLinesSync(filePath: string, options?: Options): ReaderIterator;
3866 filePath: string,
3936 declare function readText(filePath: string, callback: AsyncCallback<string>): void;
4008 filePath: string,
4083 filePath: string,
/interface/sdk-js/build-tools/dts_parser/src/typedef/statistics/
DApiStatistics.ts26 filePath: string = ''; property in ApiStatisticsInfo
53 this.filePath = fileFilePath;
63 return this.filePath;
/interface/sdk-js/build-tools/api_check_plugin/autoTest/expect/
Denum004.txt6 "filePath": "api_check_plugin\\autoTest\\ut\\enum004.d.ts",
Dany001.txt6 "filePath": "api_check_plugin\\autoTest\\ut\\any001.d.ts",
Dreadonly002.txt6 "filePath": "api_check_plugin\\autoTest\\ut\\readonly002.d.ts",
Dstatic001.txt6 "filePath": "api_check_plugin\\autoTest\\ut\\static001.d.ts",
Dsystemapi002.txt6 "filePath": "api_check_plugin\\autoTest\\ut\\systemapi002.d.ts",
Dtypedef004.txt6 "filePath": "api_check_plugin\\autoTest\\ut\\typedef004.d.ts",
Dtype003.txt6 "filePath": "api_check_plugin\\autoTest\\ut\\type003.d.ts",
Dnamespace004.txt6 "filePath": "api_check_plugin\\autoTest\\ut\\namespace004.d.ts",
DFAModelOnly002.txt6 "filePath": "api_check_plugin\\autoTest\\ut\\FAModelOnly002.d.ts",
Dsince002.txt6 "filePath": "api_check_plugin\\autoTest\\ut\\since002.d.ts",

12345