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

Function formatDocument

test/fixtures/snapshot/typescript.js:147036–147042  ·  view source on GitHub ↗
(sourceFile, formatContext)

Source from the content-addressed store, hash-verified

147034 }
147035 formatting.formatOnClosingCurly = formatOnClosingCurly;
147036 function formatDocument(sourceFile, formatContext) {
147037 var span = {
147038 pos: 0,
147039 end: sourceFile.text.length
147040 };
147041 return formatSpan(span, sourceFile, formatContext, 0 /* FormattingRequestKind.FormatDocument */);
147042 }
147043 formatting.formatDocument = formatDocument;
147044 function formatSelection(start, end, sourceFile, formatContext) {
147045 // format from the beginning of the line

Callers

nothing calls this directly

Calls 1

formatSpanFunction · 0.85

Tested by

no test coverage detected