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

Function getTypeReferenceName

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

Source from the content-addressed store, hash-verified

60356 return !!(declaration && ts.getContainingFunction(declaration));
60357 }
60358 function getTypeReferenceName(node) {
60359 switch (node.kind) {
60360 case 178 /* SyntaxKind.TypeReference */:
60361 return node.typeName;
60362 case 228 /* SyntaxKind.ExpressionWithTypeArguments */:
60363 // We only support expressions that are simple qualified names. For other
60364 // expressions this produces undefined.
60365 var expr = node.expression;
60366 if (ts.isEntityNameExpression(expr)) {
60367 return expr;
60368 }
60369 // fall through;
60370 }
60371 return undefined;
60372 }
60373 function getSymbolPath(symbol) {
60374 return symbol.parent ? "".concat(getSymbolPath(symbol.parent), ".").concat(symbol.escapedName) : symbol.escapedName;
60375 }

Callers 1

resolveTypeReferenceNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…