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

Function getImportOrExportReferences

test/fixtures/snapshot/typescript.js:138291–138304  ·  view source on GitHub ↗
(referenceLocation, referenceSymbol, search, state)

Source from the content-addressed store, hash-verified

138289 }
138290 }
138291 function getImportOrExportReferences(referenceLocation, referenceSymbol, search, state) {
138292 var importOrExport = FindAllReferences.getImportOrExportSymbol(referenceLocation, referenceSymbol, state.checker, search.comingFrom === 1 /* ImportExport.Export */);
138293 if (!importOrExport)
138294 return;
138295 var symbol = importOrExport.symbol;
138296 if (importOrExport.kind === 0 /* ImportExport.Import */) {
138297 if (!(isForRenameWithPrefixAndSuffixText(state.options))) {
138298 searchForImportedSymbol(symbol, state);
138299 }
138300 }
138301 else {
138302 searchForImportsOfExport(referenceLocation, symbol, importOrExport.exportInfo, state);
138303 }
138304 }
138305 function getReferenceForShorthandProperty(_a, search, state) {
138306 var flags = _a.flags, valueDeclaration = _a.valueDeclaration;
138307 var shorthandValueSymbol = state.checker.getShorthandAssignmentValueSymbol(valueDeclaration);

Callers 1

getReferencesAtLocationFunction · 0.85

Calls 3

searchForImportedSymbolFunction · 0.85
searchForImportsOfExportFunction · 0.85

Tested by

no test coverage detected