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

Function searchForName

test/fixtures/snapshot/typescript.js:137895–137899  ·  view source on GitHub ↗

Search for all occurrences of an identifier in a source file (and filter out the ones that match).

(sourceFile, search, state)

Source from the content-addressed store, hash-verified

137893 }
137894 /** Search for all occurrences of an identifier in a source file (and filter out the ones that match). */
137895 function searchForName(sourceFile, search, state) {
137896 if (ts.getNameTable(sourceFile).get(search.escapedText) !== undefined) {
137897 getReferencesInSourceFile(sourceFile, search, state);
137898 }
137899 }
137900 function getPropertySymbolOfDestructuringAssignment(location, checker) {
137901 return ts.isArrayLiteralOrObjectLiteralDestructuringPattern(location.parent.parent)
137902 ? checker.getPropertySymbolOfDestructuringAssignment(location)

Callers 2

searchForImportsOfExportFunction · 0.85

Calls 2

getMethod · 0.65

Tested by

no test coverage detected