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

Function getImmediateAliasedSymbol

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

Source from the content-addressed store, hash-verified

73501 return createIndexInfo(keyType, unionType, isConstContext(node));
73502 }
73503 function getImmediateAliasedSymbol(symbol) {
73504 ts.Debug.assert((symbol.flags & 2097152 /* SymbolFlags.Alias */) !== 0, "Should only get Alias here.");
73505 var links = getSymbolLinks(symbol);
73506 if (!links.immediateTarget) {
73507 var node = getDeclarationOfAliasSymbol(symbol);
73508 if (!node)
73509 return ts.Debug.fail();
73510 links.immediateTarget = getTargetOfAliasDeclaration(node, /*dontRecursivelyResolve*/ true);
73511 }
73512 return links.immediateTarget;
73513 }
73514 function checkObjectLiteral(node, checkMode) {
73515 var inDestructuringPattern = ts.isAssignmentTarget(node);
73516 // Grammar checking

Callers 2

getSymbolAtLocationFunction · 0.85

Calls 5

getSymbolLinksFunction · 0.85
assertMethod · 0.80
failMethod · 0.45

Tested by

no test coverage detected