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

Function getFunctionExtractionAtIndex

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

Source from the content-addressed store, hash-verified

160566 }
160567 }
160568 function getFunctionExtractionAtIndex(targetRange, context, requestedChangesIndex) {
160569 var _a = getPossibleExtractionsWorker(targetRange, context), scopes = _a.scopes, _b = _a.readsAndWrites, target = _b.target, usagesPerScope = _b.usagesPerScope, functionErrorsPerScope = _b.functionErrorsPerScope, exposedVariableDeclarations = _b.exposedVariableDeclarations;
160570 ts.Debug.assert(!functionErrorsPerScope[requestedChangesIndex].length, "The extraction went missing? How?");
160571 context.cancellationToken.throwIfCancellationRequested(); // TODO: GH#18217
160572 return extractFunctionInScope(target, scopes[requestedChangesIndex], usagesPerScope[requestedChangesIndex], exposedVariableDeclarations, targetRange, context);
160573 }
160574 function getConstantExtractionAtIndex(targetRange, context, requestedChangesIndex) {
160575 var _a = getPossibleExtractionsWorker(targetRange, context), scopes = _a.scopes, _b = _a.readsAndWrites, target = _b.target, usagesPerScope = _b.usagesPerScope, constantErrorsPerScope = _b.constantErrorsPerScope, exposedVariableDeclarations = _b.exposedVariableDeclarations;
160576 ts.Debug.assert(!constantErrorsPerScope[requestedChangesIndex].length, "The extraction went missing? How?");

Callers 1

Calls 3

extractFunctionInScopeFunction · 0.85
assertMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…