Home
last modified time | relevance | path

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

12

/interface/sdk-js/build-tools/api_check_plugin/src/
Dapi_check_plugin.js63 const fileName = path.basename(filePath).replace(/.d.ts/g, '.ts');
68 fileName: fileName, property
75 function checkAPICodeStyleCallback(fileName) { argument
78 checkAPIFileName(node, fileName);
79 checkAllNode(node, node, fileName);
85 function checkAllNode(node, sourcefile, fileName) { argument
88 checkAPINameOfHump(node, sourcefile, fileName);
92 checkAPIDecorators(node, sourcefile, fileName);
94 checkSpelling(node, sourcefile, fileName);
96 checkSyscap(node, sourcefile, fileName);
[all …]
Dcheck_naming.js27 function checkNaming(node, sourcefile, fileName) { argument
35 checkApiNaming(node, sourcefile, fileName);
38 checkApiNaming(node, sourcefile, fileName);
45 function checkApiNaming(node, sourcefile, fileName) { argument
47 checkApiNamingWords(node, sourcefile, fileName, lowIdentifier);
48 checkApiNamingScenario(node, sourcefile, fileName, lowIdentifier);
51 function checkApiNamingWords(node, sourcefile, fileName, lowIdentifier) { argument
62 …addAPICheckErrorLogs(node, sourcefile, fileName, ErrorType.NAMING_ERRORS, errorInfo, FileType.LOG_…
69 …addAPICheckErrorLogs(node, sourcefile, fileName, ErrorType.NAMING_ERRORS, errorInfo, FileType.LOG_…
94 function checkApiNamingScenario(node, sourcefile, fileName, lowIdentifier) { argument
[all …]
Dcompile_info.js29 function addAPICheckErrorLogs(node, sourcefile, fileName, errorType, errorInfo, type, level) { argument
34 if (!checkFailFileNameSet.has(fileName)) {
35 result.apiFiles.push(fileName);
38 const baseFileName = fileName.substring(fileName.indexOf('api'), fileName.length);
43 fileName: `${baseFileName}(line: ${posOfNode.line + 1}, col: ${posOfNode.character + 1})`, property
47 basename: path.basename(fileName).replace(/\.d\.ts/g, ''),
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.…
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_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/collect_application_api/src/
Dapi_recognizer.js37 visitNode(node, fileName) { argument
39 this.visitUIRenderNode(node.body, fileName);
41 this.visitNormalNode(node, fileName);
51 visitNormalNode(node, fileName) { argument
54 this.recognizeNormalCallExpression(node, fileName);
56 this.recognizeNormal(node, fileName);
58 this.visitNode(child, fileName);
70 visitUIRenderNode(node, fileName) { argument
72 this.recognizeUIComponents(statement, fileName);
144 if (this.isSdkApi(decoratroSymbol.valueDeclaration.getSourceFile().fileName)) {
[all …]
Dapi_collector.js85 fileExists: (fileName) => { argument
86 return fileName && ts.sys.fileExists(fileName);
88 readFile: (fileName) => { argument
89 ts.sys.readFile(fileName);
151 Logger.info('ApiCollector', sf.fileName);
163 Logger.info(this.logTag, `scan ${sourceFile.fileName}`);
165 systemApiRecognizer.visitNode(sourceFile, sourceFile.fileName);
/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/sdk_upgrade_assistance_plugin/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/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-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 …]
Dcheck_order.js74 function checkAPITagName(tag, node, sourcefile, fileName, JSDocIndec) { argument
85 …addAPICheckErrorLogs(node, sourcefile, fileName, ErrorType.WRONG_SCENE, APITagNameResult.errorInfo,
117 function checkInheritTag(comment, node, sourcefile, fileName, JSocIndex) { argument
133 …addAPICheckErrorLogs(node, sourcefile, fileName, ErrorType.WRONG_SCENE, inheritResult.errorInfo, F…
/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);
Dcollect_api.js33 fileNameMap.set(element.syscap, element.fileName);
43 const fileName = path.basename(file).replace(/.d.ts$/g, '.ts');
44 newFileNames.push(fileName);
47 const fileName = path.basename(file).replace(/.d.ts$/g, '.ts');
48 oldFileNames.push(fileName);
54 newFileNames.forEach(fileName => {
55 let index = oldFileNames.indexOf(fileName);
59 fileName: fileName, property
60 filePath: newFiles[newFileNames.indexOf(fileName)],
65 oldFileNames.forEach(fileName => {
[all …]
/interface/sdk-js/build-tools/
Ddelete_systemapi_plugin.js64 const fileName = path.basename(url).replace(/.d.ts/g, '.ts');
77 fileName: fileName, property
110 let fileName = '';
114 fileName = RegExp.$3;
118 fileName = RegExp.$3;
122 fileName = RegExp.$3;
130 finallyurl = `${starturl === '' ? './' : ''}${starturl}@internal/component/ets/${fileName}`;
133 finallyurl = `../${starturl}build-tools/ets-loader/declarations/${fileName}`;
136 finallyurl = `../${starturl}component/${fileName}`;
388 const fileName = path.basename(url).replace(/.d.ts/g, '.ts');
[all …]
/interface/sdk-js/api/
D@ohos.file.trash.d.ts70 readonly fileName: string; property
D@ohos.file.recent.d.ts70 readonly fileName: string; property
/interface/sdk-js/build-tools/api_check_plugin/
Dindex.js21 exports.checkJSDoc = function (node, sourceFile, fileName) { argument
23 return checkLegality.checkJsDocOfCurrentNode(node, sourceFile, fileName, false, false);

12