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

Function nonAliasCanBeReferencedAtTypeLocation

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

Source from the content-addressed store, hash-verified

135467 // This code used to just test the result of `skipAlias`, but that would ignore any locally introduced meanings.
135468 return nonAliasCanBeReferencedAtTypeLocation(symbol) || nonAliasCanBeReferencedAtTypeLocation(ts.skipAlias(symbol.exportSymbol || symbol, checker));
135469 function nonAliasCanBeReferencedAtTypeLocation(symbol) {
135470 return !!(symbol.flags & 788968 /* SymbolFlags.Type */) || checker.isUnknownSymbol(symbol) ||
135471 !!(symbol.flags & 1536 /* SymbolFlags.Module */) && ts.addToSeen(seenModules, ts.getSymbolId(symbol)) &&
135472 checker.getExportsOfModule(symbol).some(function (e) { return symbolCanBeReferencedAtTypeLocation(e, checker, seenModules); });
135473 }
135474 }
135475 function isDeprecated(symbol, checker) {
135476 var declarations = ts.skipAlias(symbol, checker).declarations;

Callers 1

Calls 2

someMethod · 0.80

Tested by

no test coverage detected