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

Function isNonTypeAliasTemplate

test/fixtures/snapshot/typescript.js:18672–18674  ·  view source on GitHub ↗

template tags are only available when a typedef isn't already using them

(tag)

Source from the content-addressed store, hash-verified

18670 ts.getJSDocTypeParameterDeclarations = getJSDocTypeParameterDeclarations;
18671 /** template tags are only available when a typedef isn't already using them */
18672 function isNonTypeAliasTemplate(tag) {
18673 return ts.isJSDocTemplateTag(tag) && !(tag.parent.kind === 320 /* SyntaxKind.JSDoc */ && tag.parent.tags.some(isJSDocTypeAlias));
18674 }
18675 /**
18676 * Gets the effective type annotation of the value parameter of a set accessor. If the node
18677 * was parsed in a JavaScript file, gets the type annotation from JSDoc.

Callers 1

Calls 1

someMethod · 0.80

Tested by

no test coverage detected