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

Function getEffectiveJSDocHost

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

Source from the content-addressed store, hash-verified

17004 }
17005 ts.getHostSignatureFromJSDoc = getHostSignatureFromJSDoc;
17006 function getEffectiveJSDocHost(node) {
17007 var host = getJSDocHost(node);
17008 if (host) {
17009 return getSourceOfDefaultedAssignment(host)
17010 || getSourceOfAssignment(host)
17011 || getSingleInitializerOfVariableStatementOrPropertyDeclaration(host)
17012 || getSingleVariableOfVariableStatement(host)
17013 || getNestedModuleDeclaration(host)
17014 || host;
17015 }
17016 }
17017 ts.getEffectiveJSDocHost = getEffectiveJSDocHost;
17018 /** Use getEffectiveJSDocHost if you additionally need to look for jsdoc on parent nodes, like assignments. */
17019 function getJSDocHost(node) {

Callers 1

Tested by

no test coverage detected