Home
last modified time | relevance | path

Searched refs:fileName (Results 1 – 25 of 46) sorted by relevance

12

/interface/sdk-js/build-tools/collect_application_api/src/
Dapi_recognizer.js38 visitNode(node, fileName) { argument
39 this.recognizeDecorators(node, fileName, undefined);
41 this.visitUIRenderNode(node.body, fileName);
43 this.visitNormalNode(node, fileName);
47 recognizeDecorators(node, fileName, position) { argument
65 apiDecInfo.setSourceFileName(fileName);
83 visitNormalNode(node, fileName) { argument
86 this.recognizeNormalCallExpression(node, fileName);
88 this.recognizeNormal(node, fileName);
90 this.visitNode(child, fileName);
[all …]
Dapi_collector.js87 fileExists: (fileName) => { argument
88 return fileName && ts.sys.fileExists(fileName);
90 readFile: (fileName) => { argument
91 ts.sys.readFile(fileName);
158 Logger.info('ApiCollector', sf.fileName);
170 Logger.info(this.logTag, `scan ${sourceFile.fileName}`);
172 systemApiRecognizer.visitNode(sourceFile, sourceFile.fileName);
/interface/sdk-js/build-tools/dts_parser/src/coreImpl/checker/src/
Dts_check_plugin.ts77 fileName: string,
84 const fileContent: string = fs.readFileSync(fileName, StringConstant.UTF8);
85 const node: ts.Node = ts.createSourceFile(fileName, fileContent, ts.ScriptTarget.ES2017, true);
86 const fileSuffix: string = fileName.substring(fileName.lastIndexOf('.'), fileName.length);
91 if (programSourceFile.fileName === targetSourceFile.fileName) {
94 const filePath: string = item.file?.fileName as string;
95 const fileName: string = filePath.substring(filePath.indexOf('api'), filePath.length); constant
99 fileName,
117 if (path.normalize(item.file?.fileName as string) === path.normalize(fileName)) {
118 const filePath: string = item.file?.fileName as string;
[all …]
/interface/sdk-js/build-tools/api_check_plugin/src/
Dapi_check_plugin.js64 const fileName = path.basename(filePath).replace(/.d.ts/g, '.ts');
69 fileName: fileName, property
76 function checkAPICodeStyleCallback(fileName) { argument
79 checkAPIFileName(node, fileName);
80 checkAllNode(node, node, fileName);
86 function checkAllNode(node, sourcefile, fileName) { argument
89 checkAPINameOfHump(node, sourcefile, fileName);
93 checkAPIDecorators(node, sourcefile, fileName);
95 checkSpelling(node, sourcefile, fileName);
97 checkSyscap(node, sourcefile, fileName);
[all …]
Dcheck_naming.js29 function checkNaming(node, sourcefile, fileName) { argument
37 checkApiNaming(node, sourcefile, fileName);
40 checkApiNaming(node, sourcefile, fileName);
47 function checkApiNaming(node, sourcefile, fileName) { argument
54 checkApiNamingWords(node, sourcefile, fileName, lowIdentifier);
55 checkApiNamingScenario(node, sourcefile, fileName, lowIdentifier);
58 function checkApiNamingWords(node, sourcefile, fileName, lowIdentifier) { argument
69 …addAPICheckErrorLogs(node, sourcefile, fileName, ErrorType.NAMING_ERRORS, errorInfo, FileType.LOG_…
76 …addAPICheckErrorLogs(node, sourcefile, fileName, ErrorType.NAMING_ERRORS, errorInfo, FileType.LOG_…
105 function checkApiNamingScenario(node, sourcefile, fileName, lowIdentifier) { argument
[all …]
Dcheck_event_subscription.js22 function checkOnAndOffAppearInPair(node, sourcefile, fileName, onEventAllNames, onEventCheckNames, … argument
26 …addAPICheckErrorLogs(node, sourcefile, fileName, ErrorType.API_PAIR_ERRORS, checkErrorResult, LogT…
33 …addAPICheckErrorLogs(node, sourcefile, fileName, ErrorType.API_PAIR_ERRORS, checkErrorResult, LogT…
39 function checkTheFirstParameter(node, sourcefile, fileName) { argument
53 …addAPICheckErrorLogs(node, sourcefile, fileName, ErrorType.PARAMETER_ERRORS, checkErrorResult, Log…
65 …addAPICheckErrorLogs(node, sourcefile, fileName, ErrorType.PARAMETER_ERRORS, checkErrorResult, Log…
84 function checkOffFunctions(nodes, sourcefile, fileName) { argument
105 …addAPICheckErrorLogs(nodes[0], sourcefile, fileName, ErrorType.PARAMETER_ERRORS, checkErrorResult,…
138 function handleVariousEventSubscriptionAPI(childNode, childNodeName, sourcefile, fileName, onEventA… argument
144 checkTheFirstParameter(childNode, sourcefile, fileName, childNodeName);
[all …]
Dcheck_hump.js64 function checkAPINameOfHump(node, sourcefile, fileName) { argument
67 …if (ts.isEnumMember(node) || (ts.isVariableDeclaration(node) && !(fileName.indexOf('component\\ets…
68 fileName.indexOf('component/ets/') >= 0))) {
92 …addAPICheckErrorLogs(node, sourcefile, fileName, ErrorType.NAMING_ERRORS, checkResult, LogType.LOG…
98 function checkAPIFileName(sourcefile, fileName) { argument
99 if (fileName.indexOf('component\\ets\\') < 0 && fileName.indexOf('component/ets/') < 0) {
110 const basename = path.basename(fileName).replace(/\.d\.ts$/, '');
120 …addAPICheckErrorLogs(sourcefile, sourcefile, fileName, ErrorType.NAMING_ERRORS, checkResult, LogTy…
Dcheck_permission.js49 function checkPermission(node, sourcefile, fileName) { argument
89 if (hasPermissionError && !permissionCheckWhitelist.has(path.basename(fileName))) {
90 …addAPICheckErrorLogs(node, sourcefile, fileName, ErrorType.UNKNOW_PERMISSION, errorInfo, FileType.…
92 } else if (hasPermissionError && permissionCheckWhitelist.has(path.basename(fileName))) {
93 …addAPICheckErrorLogs(node, sourcefile, fileName, ErrorType.UNKNOW_PERMISSION, errorInfo, FileType.…
Dcompile_info.js31 function addAPICheckErrorLogs(node, sourcefile, fileName, errorType, errorInfo, type, level) { argument
33 if (!checkFailFileNameSet.has(fileName)) {
34 result.apiFiles.push(fileName);
37 const baseFileName = fileName.substring(fileName.indexOf('api'), fileName.length);
49 fileName: `${baseFileName}(line: ${posOfNode.line + 1}, col: ${posOfNode.character + 1})`, property
53 basename: path.basename(fileName).replace(/\.d\.ts/g, ''),
93 … JSON.stringify(maskInfo.fileName) === JSON.stringify(baseFileName.split(path.sep).join('\\'))) {
Dcheck_any.js21 function checkAnyInAPI(node, sourcefile, fileName) { argument
23 …addAPICheckErrorLogs(node, sourcefile, fileName, ErrorType.ILLEGAL_ANY, ErrorValueInfo.ILLEGAL_USE…
Dcheck_legality.js228 function checkTagValue(tag, index, node, fileName, errorLogs) { argument
236 valueCheckResult = checker(tag, node, fileName, paramIndex++);
238 valueCheckResult = checker(tag, node, fileName, throwsIndex++);
240 valueCheckResult = checker(tag, node, fileName);
250 function checkJsDocOfCurrentNode(node, sourcefile, fileName, isGuard) { argument
262 checkInheritTag(comment, node, sourcefile, fileName, index);
265 const checkAPIDecorator = checkAPITagName(tag, node, sourcefile, fileName, index);
269 checkTagValue(tag, index, node, fileName, errorLogs);
284 function checkJSDoc(node, sourcefile, fileName, isGuard) { argument
285 const verificationResult = checkJsDocOfCurrentNode(node, sourcefile, fileName, isGuard);
[all …]
Dcheck_syscap.js20 function checkSyscap(node, sourcefile, fileName) { argument
34 …addAPICheckErrorLogs(node, sourcefile, fileName, ErrorType.UNKNOW_SYSCAP, errorInfo, FileType.JSDO…
Dcheck_file_tag_order.js20 function checkFileTagOrder(node, sourcefile, fileName) { argument
33 …addAPICheckErrorLogs(node, sourcefile, fileName, ErrorType.WRONG_SCENE, ErrorValueInfo.ERROR_FILE_…
Dcheck_deprecated.js19 function checkDeprecated(node, sourcefile, fileName) { argument
51 …addAPICheckErrorLogs(node, sourcefile, fileName, ErrorType.UNKNOW_DEPRECATED, errorInfo, FileType.…
Dcheck_spelling.js30 function checkSpelling(node, sourcefile, fileName) { argument
32 checkWordSpelling(node.escapedText.toString(), node, sourcefile, fileName, FileType.API);
37 checkWordSpelling(word, node, sourcefile, fileName, FileType.JSDOC);
43 function checkWordSpelling(nodeText, node, sourcefile, fileName, type) { argument
70 …addAPICheckErrorLogs(node, sourcefile, fileName, ErrorType.MISSPELL_WORDS, errorInfo, type, ErrorL…
Dcheck_decorator.js23 function checkAPIDecorators(node, sourcefile, fileName) { argument
51 …addAPICheckErrorLogs(node, sourcefile, fileName, ErrorType.UNKNOW_DECORATOR, errorInfo, FileType.J…
/interface/sdk-js/build-tools/api_diff/test/testCase/
Dtest.js29 testCasesFileNames.forEach(fileName => {
30 const oldFileDir = path.join(testCasesDir, fileName, 'old');
31 const newFileDir = path.join(testCasesDir, fileName, 'new');
32 const expectFilePath = path.resolve(expectFileDir, `${fileName}.json`);
33 it(`testDiff# ${fileName}`, function () {
37 "oldVersion": fileName,
38 "newVersion": fileName,
/interface/sdk-js/build-tools/openharmony_sdk_upgrade_assistant/src/main/java/com/update/check/utils/
DMySystemUtils.java121 public static File findExecutableFileInPathEnv(String fileName) { in findExecutableFileInPathEnv() argument
122 Objects.requireNonNull(fileName); in findExecutableFileInPathEnv()
124 fileNames.add(fileName); in findExecutableFileInPathEnv()
126 fileNames.addAll(PATHEXT.stream().map(x -> fileName + x).collect(Collectors.toList())); in findExecutableFileInPathEnv()
134 for (String fileName : fileNames) { in findExecutableFileInPathEnv()
135 File ioFile = new File(path, fileName); in findExecutableFileInPathEnv()
162 public static File getExecutableFile(String ioDir, String fileName) { in getExecutableFile() argument
167 return getExecutableFile(new File(ioDir), fileName); in getExecutableFile()
177 public static File getExecutableFile(File ioDir, String fileName) { in getExecutableFile() argument
179 Objects.requireNonNull(fileName); in getExecutableFile()
[all …]
/interface/sdk-js/build-tools/dts_parser/src/bin/
Dwriter.ts26 export function JSONReporter(data: string, dest: string, fileName: string) {
27 const outputFile = path.resolve(dest, fileName);
35 fileName: string,
47 const outputFile: string = path.resolve(dest, fileName);
55 fileNameMap.forEach((fileName: string, syscap: string) => {
66 MarkdownReporter.sortDiffInfoByStatus(diffsInSameSystem, fileName, dest);
70 …static sortDiffInfoByStatus(diffsInSameSystem: BasicDiffInfo[], fileName: string, dest: string | u…
79 MarkdownReporter.exportDiffMd(fileName, sortDiffInfos, dest);
82 …static exportDiffMd(fileName: string, diffInfos: BasicDiffInfo[], dest: string | undefined): void {
/interface/sdk-js/build-tools/api_check_plugin/autoTest/testCase/
Dtest.js30 testCasesFileNames.forEach(fileName => {
31 const expectFilePath = path.resolve(expectFileDir, `${fileName.replace(/.d.ts/g, '.txt')}`);
32 it(`testDiff# ${fileName}`, function () {
34 const url = path.join(testCasesDir, fileName);
40 … const resultFilePath = path.join(outputFilePath, `output_${fileName.replace(/.d.ts/g, '.txt')}`);
/interface/sdk_c/global/resource_management/include/
Draw_file_manager.h119 RawFile *OH_ResourceManager_OpenRawFile(const NativeResourceManager *mgr, const char *fileName);
136 RawFile64 *OH_ResourceManager_OpenRawFile64(const NativeResourceManager *mgr, const char *fileName);
/interface/sdk-js/build-tools/api_check_plugin/src/check_jsdoc_value/
Dcheck_rest_value.js21 function checkExtendsValue(tag, node, fileName) { argument
39 function checkEnumValue(tag, node, fileName) { argument
57 function checkSinceValue(tag, node, fileName) { argument
72 function checkReturnsValue(tag, node, fileName) { argument
100 function checkParamValue(tag, node, fileName, tagIndex) { argument
139 function checkThrowsValue(tag, node, fileName, tagIndex) { argument
244 function checkUseinsteadValue(tag, node, fileName) { argument
254 const result = splitUseinsteadValue(tagNameValue, fileName);
263 function checkTypeValue(tag, node, fileName) { argument
290 function checkDefaultValue(tag, node, fileName) { argument
[all …]
/interface/sdk-js/build-tools/api_diff/src/
Dapi_writer.js29 fileNameMap.set(content.syscap, content.fileName);
78 fileNameMap.forEach((fileName, syscap) => {
89 sortDiffInfoByStatus(diffsInSameSystem, fileName, dest);
94 function sortDiffInfoByStatus(diffsInSameSystem, fileName, dest) { argument
103 exportDiffMd(fileName, sortDiffInfos, dest);
106 function exportDiffMd(fileName, diffInfos, dest) { argument
120 fs.writeFileSync(`${dest}\\diff合集\\js-apidiff-${fileName}.md`, finalContent);
/interface/sdk-js/build-tools/
Ddelete_systemapi_plugin.js72 const fileName = processFileName(kitFile);
73 let sourceFile = ts.createSourceFile(fileName, content, ts.ScriptTarget.ES2017, true);
216 const fileName = processFileName(url);
229 fileName: fileName, property
262 let fileName = '';
266 fileName = RegExp.$3;
270 fileName = RegExp.$3;
274 fileName = RegExp.$3;
282 finallyurl = `${starturl === '' ? './' : ''}${starturl}@internal/component/ets/${fileName}`;
285 finallyurl = `../${starturl}build-tools/ets-loader/declarations/${fileName}`;
[all …]
/interface/sdk-js/api/
D@ohos.file.fileAccess.d.ts251 fileName: string;
1583 copyFile(sourceUri: string, destUri: string, fileName: string): Promise<string>;
1622 …copyFile(sourceUri: string, destUri: string, fileName: string, callback: AsyncCallback<string>): v…
2154 moveFile(sourceUri: string, destUri: string, fileName: string): Promise<string>;
2193 …moveFile(sourceUri: string, destUri: string, fileName: string, callback: AsyncCallback<string>): v…

12