Lines Matching refs:node
29 function checkNaming(node, sourcefile, fileName) { argument
31 const apiVersion = Number(getApiVersion(node));
37 checkApiNaming(node, sourcefile, fileName);
40 checkApiNaming(node, sourcefile, fileName);
47 function checkApiNaming(node, sourcefile, fileName) { argument
48 const lowIdentifier = node.getText().toLowerCase();
50 getParentkind(node, apiParentKind);
51 if (node.parent.kind === ts.SyntaxKind.TypeReference|| apiParentKind.includes('JSDoc')) {
54 checkApiNamingWords(node, sourcefile, fileName, lowIdentifier);
55 checkApiNamingScenario(node, sourcefile, fileName, lowIdentifier);
58 function checkApiNamingWords(node, sourcefile, fileName, lowIdentifier) { argument
66 const internalWord = node.getText().substr(prohibitedWordIndex, key.length);
67 …const errorInfo = `Prohibited word in [${node.getText()}]:{${internalWord}}.The word allowed is [$…
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
113 const internalWord = node.getText().substr(prohibitedWordIndex, key.length);
114 …const errorInfo = `Prohibited word in [${node.getText()}]:{${internalWord}} in the [${path.basenam…
115 …addAPICheckErrorLogs(node, sourcefile, fileName, ErrorType.NAMING_ERRORS, errorInfo, FileType.LOG_…