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

Function isNonLocalAlias

test/fixtures/snapshot/typescript.js:50807–50812  ·  view source on GitHub ↗

* Indicates that a symbol is an alias that does not merge with a local declaration. * OR Is a JSContainer which may merge an alias with a local declaration

(symbol, excludes)

Source from the content-addressed store, hash-verified

50805 * OR Is a JSContainer which may merge an alias with a local declaration
50806 */
50807 function isNonLocalAlias(symbol, excludes) {
50808 if (excludes === void 0) { excludes = 111551 /* SymbolFlags.Value */ | 788968 /* SymbolFlags.Type */ | 1920 /* SymbolFlags.Namespace */; }
50809 if (!symbol)
50810 return false;
50811 return (symbol.flags & (2097152 /* SymbolFlags.Alias */ | excludes)) === 2097152 /* SymbolFlags.Alias */ || !!(symbol.flags & 2097152 /* SymbolFlags.Alias */ && symbol.flags & 67108864 /* SymbolFlags.Assignment */);
50812 }
50813 function resolveSymbol(symbol, dontResolveAlias) {
50814 return !dontResolveAlias && isNonLocalAlias(symbol) ? resolveAlias(symbol) : symbol;
50815 }

Callers 3

resolveSymbolFunction · 0.85
markAliasReferencedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected