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

Function hasDocComment

test/fixtures/snapshot/typescript.js:127901–127904  ·  view source on GitHub ↗
(sourceFile, position)

Source from the content-addressed store, hash-verified

127899 }
127900 ts.isInComment = isInComment;
127901 function hasDocComment(sourceFile, position) {
127902 var token = getTokenAtPosition(sourceFile, position);
127903 return !!ts.findAncestor(token, ts.isJSDoc);
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.

Callers

nothing calls this directly

Calls 1

getTokenAtPositionFunction · 0.85

Tested by

no test coverage detected