MCPcopy Index your code
hub / github.com/nodejs/node / isDeclaration

Function isDeclaration

test/fixtures/snapshot/typescript.js:14057–14062  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

14055 }
14056 /* @internal */
14057 function isDeclaration(node) {
14058 if (node.kind === 163 /* SyntaxKind.TypeParameter */) {
14059 return (node.parent && node.parent.kind !== 344 /* SyntaxKind.JSDocTemplateTag */) || ts.isInJSFile(node);
14060 }
14061 return isDeclarationKind(node.kind);
14062 }
14063 ts.isDeclaration = isDeclaration;
14064 /* @internal */
14065 function isDeclarationStatement(node) {

Callers 1

Calls 6

isDeclarationKindFunction · 0.85
nextTokenFunction · 0.85
lookAheadFunction · 0.85
tokenFunction · 0.70

Tested by

no test coverage detected