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

Function getAliasSymbolForTypeNode

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

Source from the content-addressed store, hash-verified

62844 return links.resolvedType;
62845 }
62846 function getAliasSymbolForTypeNode(node) {
62847 var host = node.parent;
62848 while (ts.isParenthesizedTypeNode(host) || ts.isJSDocTypeExpression(host) || ts.isTypeOperatorNode(host) && host.operator === 145 /* SyntaxKind.ReadonlyKeyword */) {
62849 host = host.parent;
62850 }
62851 return ts.isTypeAlias(host) ? getSymbolOfNode(host) : undefined;
62852 }
62853 function getTypeArgumentsForAliasSymbol(symbol) {
62854 return symbol ? getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol) : undefined;
62855 }

Calls 1

getSymbolOfNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…