Skip to main content

Module formatting

Module formatting 

Source

Functions§

format_document
Handle document formatting request.
format_range
Range formatting: the whole-document structural format (a line’s depth depends on the lines above it — depth is a document-level fact), filtered to the edits whose lines intersect the requested range. Sound because format_source is line-count preserving: every edit stays on its line.