format

Formats the code contained in buffer into output.

bool
format
(
OutputRange
)
(,
ubyte[] buffer
,
OutputRange output
,)

Parameters

source_desc string

A description of where buffer came from. Usually a file name.

buffer ubyte[]

The raw source code.

output OutputRange

The output range that will have the formatted code written to it.

formatterConfig Config*

Formatter configuration.

Return Value

Type: bool

true if the formatting succeeded, false of a lexing error. This function can return true if parsing failed.

Meta