MCPcopy Create free account
hub / github.com/nodejs/node / nodeHasTokens

Function nodeHasTokens

test/fixtures/snapshot/typescript.js:127906–127910  ·  view source on GitHub ↗
(n, sourceFile)

Source from the content-addressed store, hash-verified

127904 }
127905 ts.hasDocComment = hasDocComment;
127906 function nodeHasTokens(n, sourceFile) {
127907 // If we have a token or node that has a non-zero width, it must have tokens.
127908 // Note: getWidth() does not take trivia into account.
127909 return n.kind === 1 /* SyntaxKind.EndOfFileToken */ ? !!n.jsDoc : n.getWidth(sourceFile) !== 0;
127910 }
127911 function getNodeModifiers(node, excludeFlags) {
127912 if (excludeFlags === void 0) { excludeFlags = 0 /* ModifierFlags.None */; }
127913 var result = [];

Callers 2

findFunction · 0.85

Calls 1

getWidthMethod · 0.45

Tested by

no test coverage detected