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

Function getSymbolIfSameReference

test/fixtures/snapshot/typescript.js:51701–51705  ·  view source on GitHub ↗

* Checks if two symbols, through aliasing and/or merging, refer to the same thing

(s1, s2)

Source from the content-addressed store, hash-verified

51699 * Checks if two symbols, through aliasing and/or merging, refer to the same thing
51700 */
51701 function getSymbolIfSameReference(s1, s2) {
51702 if (getMergedSymbol(resolveSymbol(getMergedSymbol(s1))) === getMergedSymbol(resolveSymbol(getMergedSymbol(s2)))) {
51703 return s1;
51704 }
51705 }
51706 function getExportSymbolOfValueSymbolIfExported(symbol) {
51707 return getMergedSymbol(symbol && (symbol.flags & 1048576 /* SymbolFlags.ExportValue */) !== 0 && symbol.exportSymbol || symbol);
51708 }

Calls 2

getMergedSymbolFunction · 0.85
resolveSymbolFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…