(originalRange, sourceFile, formatContext, requestKind)
| 147227 | return formatSpan(span, sourceFile, formatContext, requestKind); |
| 147228 | } |
| 147229 | function formatSpan(originalRange, sourceFile, formatContext, requestKind) { |
| 147230 | // find the smallest node that fully wraps the range and compute the initial indentation for the node |
| 147231 | var enclosingNode = findEnclosingNode(originalRange, sourceFile); |
| 147232 | return formatting.getFormattingScanner(sourceFile.text, sourceFile.languageVariant, getScanStartPosition(enclosingNode, originalRange, sourceFile), originalRange.end, function (scanner) { return formatSpanWorker(originalRange, enclosingNode, formatting.SmartIndenter.getIndentationForNode(enclosingNode, originalRange, sourceFile, formatContext.options), getOwnOrInheritedDelta(enclosingNode, formatContext.options, sourceFile), scanner, formatContext, requestKind, prepareRangeContainsErrorFunction(sourceFile.parseDiagnostics, originalRange), sourceFile); }); |
| 147233 | } |
| 147234 | function formatSpanWorker(originalRange, enclosingNode, initialIndentation, delta, formattingScanner, _a, requestKind, rangeContainsError, sourceFile) { |
| 147235 | var _b; |
| 147236 | var options = _a.options, getRules = _a.getRules, host = _a.host; |
no test coverage detected