Lines Matching refs:node
46 function getName(node) { argument
47 if (node.name.escapedText) {
48 return node.name.escapedText.toString();
49 } else if (node.name.text) {
50 return node.name.text.toString();
55 function isConstantDecorator(node, name) { argument
56 return hasAPINote(node) && getApiInfo(node).isConstant && !checkAllUppercaseHump(name);
59 function filterApiVersion(node, version) { argument
60 const apiVersion = getApiVersion(node);
64 function checkAPINameOfHump(node, sourcefile, fileName) { argument
66 const apiInfo = getApiInfo(node);
67 …if (ts.isEnumMember(node) || (ts.isVariableDeclaration(node) && !(fileName.indexOf('component\\ets…
69 const name = getName(node);
73 …} else if (ts.isInterfaceDeclaration(node) || ts.isClassDeclaration(node) || ts.isTypeAliasDeclara…
74 ts.isEnumDeclaration(node)) {
75 const name = getName(node);
76 if (isConstantDecorator(node, name)) {
81 …} else if (ts.isPropertyDeclaration(node) || ts.isPropertySignature(node) || ts.isMethodDeclaratio…
82 ts.isFunctionDeclaration(node) || ts.isParameter(node) || ts.isModuleDeclaration(node)) {
83 const name = getName(node);
84 if (isConstantDecorator(node, name)) {
91 …if (checkResult !== '' && filterApiVersion(node, getCheckApiVersion()) && (!apiInfo.deprecated || …
92 …addAPICheckErrorLogs(node, sourcefile, fileName, ErrorType.NAMING_ERRORS, checkResult, LogType.LOG…