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

Function formatNodeGivenIndentation

test/fixtures/snapshot/typescript.js:147213–147217  ·  view source on GitHub ↗
(node, sourceFileLike, languageVariant, initialIndentation, delta, formatContext)

Source from the content-addressed store, hash-verified

147211 return 0;
147212 }
147213 function formatNodeGivenIndentation(node, sourceFileLike, languageVariant, initialIndentation, delta, formatContext) {
147214 var range = { pos: node.pos, end: node.end };
147215 return formatting.getFormattingScanner(sourceFileLike.text, languageVariant, range.pos, range.end, function (scanner) { return formatSpanWorker(range, node, initialIndentation, delta, scanner, formatContext, 1 /* FormattingRequestKind.FormatSelection */, function (_) { return false; }, // assume that node does not have any errors
147216 sourceFileLike); });
147217 }
147218 formatting.formatNodeGivenIndentation = formatNodeGivenIndentation;
147219 function formatNodeLines(node, sourceFile, formatContext, requestKind) {
147220 if (!node) {

Callers

nothing calls this directly

Calls 1

formatSpanWorkerFunction · 0.85

Tested by

no test coverage detected