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

Function addVisibleAlias

test/fixtures/snapshot/typescript.js:52172–52181  ·  view source on GitHub ↗
(declaration, aliasingStatement)

Source from the content-addressed store, hash-verified

52170 return true;
52171 }
52172 function addVisibleAlias(declaration, aliasingStatement) {
52173 // In function "buildTypeDisplay" where we decide whether to write type-alias or serialize types,
52174 // we want to just check if type- alias is accessible or not but we don't care about emitting those alias at that time
52175 // since we will do the emitting later in trackSymbol.
52176 if (shouldComputeAliasToMakeVisible) {
52177 getNodeLinks(declaration).isVisible = true;
52178 aliasesToMakeVisible = ts.appendIfUnique(aliasesToMakeVisible, aliasingStatement);
52179 }
52180 return true;
52181 }
52182 }
52183 function isEntityNameVisible(entityName, enclosingDeclaration) {
52184 // get symbol of the first identifier of the entityName

Callers 1

getIsDeclarationVisibleFunction · 0.85

Calls 1

getNodeLinksFunction · 0.85

Tested by

no test coverage detected