Lines Matching refs:kind
33 return (checkResult && (currentNode.kind !== ts.SyntaxKind.VariableStatement || !/^const\s/.test(currentNode.getText()))) ||
34 (!checkResult && currentNode.kind === ts.SyntaxKind.VariableStatement && /^const\s/.test(currentNode.getText()));
61 ts.SyntaxKind.MethodDeclaration, ts.SyntaxKind.Constructor]).has(currentNode.kind)) {
74 ts.SyntaxKind.TypeAliasDeclaration]).has(currentNode.kind)) {
79 ts.SyntaxKind.TypeAliasDeclaration]).has(currentNode.kind)) && (currentNode.type &&
80 currentNode.type.kind !== ts.SyntaxKind.VoidKeyword);
86 return new Set(commentNodeWhiteList).has(currentNode.kind);
105 commentNodeWhiteList.forEach(kind => {
106 if (!legalKindSet.has(kind)) {
107 illegalKinds.push(kind);
146 const isFunctionType = ts.SyntaxKind.FunctionType === node.type?.kind;
157 if (tagName === 'returns' && node.kind === ts.SyntaxKind.TypeAliasDeclaration && isFunctionType &&
158 node.type?.type?.kind === ts.SyntaxKind.VoidKeyword) {
187 !dealSpecialTagResult.checkResult && legalKindSet.has(node.kind)) || (tagName === 'param' &&
192 illegalKindSet.has(node.kind)) || (tagName === 'useinstead' &&
251 ts.SyntaxKind.MethodDeclaration, ts.SyntaxKind.CallSignature, ts.SyntaxKind.Constructor].indexOf(node.kind) >= 0) {