MCPcopy Index your code
hub / github.com/nodejs/node / getDeclarationOfJSPrototypeContainer

Function getDeclarationOfJSPrototypeContainer

test/fixtures/snapshot/typescript.js:51115–51124  ·  view source on GitHub ↗
(symbol)

Source from the content-addressed store, hash-verified

51113 }
51114 }
51115 function getDeclarationOfJSPrototypeContainer(symbol) {
51116 var decl = symbol.parent.valueDeclaration;
51117 if (!decl) {
51118 return undefined;
51119 }
51120 var initializer = ts.isAssignmentDeclaration(decl) ? ts.getAssignedExpandoInitializer(decl) :
51121 ts.hasOnlyExpressionInitializer(decl) ? ts.getDeclaredExpandoInitializer(decl) :
51122 undefined;
51123 return initializer || decl;
51124 }
51125 /**
51126 * Get the real symbol of a declaration with an expando initializer.
51127 *

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected