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

Function getParentSymbolOfTypeParameter

test/fixtures/snapshot/typescript.js:60159–60163  ·  view source on GitHub ↗
(typeParameter)

Source from the content-addressed store, hash-verified

60157 return typeParameter.constraint === noConstraintType ? undefined : typeParameter.constraint;
60158 }
60159 function getParentSymbolOfTypeParameter(typeParameter) {
60160 var tp = ts.getDeclarationOfKind(typeParameter.symbol, 163 /* SyntaxKind.TypeParameter */);
60161 var host = ts.isJSDocTemplateTag(tp.parent) ? ts.getEffectiveContainerForJSDocTemplateTag(tp.parent) : tp.parent;
60162 return host && getSymbolOfNode(host);
60163 }
60164 function getTypeListId(types) {
60165 var result = "";
60166 if (types) {

Callers 1

typeReferenceToTypeNodeFunction · 0.85

Calls 1

getSymbolOfNodeFunction · 0.85

Tested by

no test coverage detected