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

Function getJSDocTypeParameterDeclarations

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

Source from the content-addressed store, hash-verified

18665 }
18666 ts.getEffectiveReturnTypeNode = getEffectiveReturnTypeNode;
18667 function getJSDocTypeParameterDeclarations(node) {
18668 return ts.flatMap(ts.getJSDocTags(node), function (tag) { return isNonTypeAliasTemplate(tag) ? tag.typeParameters : undefined; });
18669 }
18670 ts.getJSDocTypeParameterDeclarations = getJSDocTypeParameterDeclarations;
18671 /** template tags are only available when a typedef isn't already using them */
18672 function isNonTypeAliasTemplate(tag) {

Callers

nothing calls this directly

Calls 2

isNonTypeAliasTemplateFunction · 0.85
flatMapMethod · 0.80

Tested by

no test coverage detected