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

Function isSymbolReferencedInFile

test/fixtures/snapshot/typescript.js:137977–137980  ·  view source on GitHub ↗

Used as a quick check for whether a symbol is used at all in a file (besides its definition).

(definition, checker, sourceFile, searchContainer)

Source from the content-addressed store, hash-verified

137975 }
137976 /** Used as a quick check for whether a symbol is used at all in a file (besides its definition). */
137977 function isSymbolReferencedInFile(definition, checker, sourceFile, searchContainer) {
137978 if (searchContainer === void 0) { searchContainer = sourceFile; }
137979 return eachSymbolReferenceInFile(definition, checker, sourceFile, function () { return true; }, searchContainer) || false;
137980 }
137981 Core.isSymbolReferencedInFile = isSymbolReferencedInFile;
137982 function eachSymbolReferenceInFile(definition, checker, sourceFile, cb, searchContainer) {
137983 if (searchContainer === void 0) { searchContainer = sourceFile; }

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected