(targetRange, context, requestedChangesIndex)
| 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?"); |
no test coverage detected
searching dependent graphs…