Lines Matching refs:node
31 function addAPICheckErrorLogs(node, sourcefile, fileName, errorType, errorInfo, type, level) { argument
36 const posOfNode = sourcefile.getLineAndCharacterOfPosition(node.getStart());
39 const needMask = checkMarkError(node, errorMessage, baseFileName);
52 version: getApiInfo(node).version,
55 apiName: node.symbol ? node.symbol.escapedName : '',
56 apiFullText: node.getFullText(),
69 function checkMarkError(node, errorMessage, baseFileName) { argument
72 if (node.name?.text) {
73 apiName = node.name.text;
74 } else if (node.escapedText) {
75 apiName = node.escapedText;
77 const apiText = node.getText().replace(/\r|\n|(\r\n)|\s/g, '');
78 const apiKindName = Object.keys(ts.SyntaxKind).find(k => ts.SyntaxKind[k] === node?.kind);
80 getParentkind(node, apiParentKind);
100 function getParentkind(node, parentkindArr) { argument
101 if (ts.isSourceFile(node)) {
104 if (ts.isSourceFile(node.parent)) {
105 parentkindArr.push(Object.keys(ts.SyntaxKind).find(k => ts.SyntaxKind[k] === node.parent.kind));
108 if (!ts.isModuleBlock(node.parent)) {
109 parentkindArr.push(Object.keys(ts.SyntaxKind).find(k => ts.SyntaxKind[k] === node.parent.kind));
110 getParentkind(node.parent, parentkindArr);
111 } else if (ts.isModuleBlock(node.parent)) {
112 getParentkind(node.parent, parentkindArr);