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

Function getHostSignatureFromJSDoc

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

Source from the content-addressed store, hash-verified

16995 }
16996 ts.getEffectiveContainerForJSDocTemplateTag = getEffectiveContainerForJSDocTemplateTag;
16997 function getHostSignatureFromJSDoc(node) {
16998 var host = getEffectiveJSDocHost(node);
16999 if (host) {
17000 return ts.isPropertySignature(host) && host.type && ts.isFunctionLike(host.type) ? host.type :
17001 ts.isFunctionLike(host) ? host : undefined;
17002 }
17003 return undefined;
17004 }
17005 ts.getHostSignatureFromJSDoc = getHostSignatureFromJSDoc;
17006 function getEffectiveJSDocHost(node) {
17007 var host = getJSDocHost(node);

Calls 1

getEffectiveJSDocHostFunction · 0.85

Tested by

no test coverage detected