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

Function markConstEnumAliasAsReferenced

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

Source from the content-addressed store, hash-verified

50929 // Aliases that resolve to const enums are not marked as referenced because they are not emitted,
50930 // but their usage in value positions must be tracked to determine if the import can be type-only.
50931 function markConstEnumAliasAsReferenced(symbol) {
50932 var links = getSymbolLinks(symbol);
50933 if (!links.constEnumReferenced) {
50934 links.constEnumReferenced = true;
50935 }
50936 }
50937 // This function is only for imports with entity names
50938 function getSymbolOfPartOfRightHandSideOfImportEquals(entityName, dontResolveAlias) {
50939 // There are three things we might try to look for. In the following examples,

Callers 1

markAliasReferencedFunction · 0.85

Calls 1

getSymbolLinksFunction · 0.85

Tested by

no test coverage detected