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

Function getPossibleExtractionsWorker

test/fixtures/snapshot/typescript.js:160631–160637  ·  view source on GitHub ↗
(targetRange, context)

Source from the content-addressed store, hash-verified

160629 return extractions;
160630 }
160631 function getPossibleExtractionsWorker(targetRange, context) {
160632 var sourceFile = context.file;
160633 var scopes = collectEnclosingScopes(targetRange);
160634 var enclosingTextRange = getEnclosingTextRange(targetRange, sourceFile);
160635 var readsAndWrites = collectReadsAndWrites(targetRange, scopes, enclosingTextRange, sourceFile, context.program.getTypeChecker(), context.cancellationToken);
160636 return { scopes: scopes, readsAndWrites: readsAndWrites };
160637 }
160638 function getDescriptionForFunctionInScope(scope) {
160639 return ts.isFunctionLikeDeclaration(scope)
160640 ? "inner function"

Callers 3

getPossibleExtractionsFunction · 0.85

Calls 3

collectEnclosingScopesFunction · 0.85
getEnclosingTextRangeFunction · 0.85
collectReadsAndWritesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…