cairo_lang_formatter

Function get_formatted_file

source
pub fn get_formatted_file(
    db: &dyn SyntaxGroup,
    syntax_root: &SyntaxNode,
    config: FormatterConfig,
) -> String
Expand description

Returns the formatted syntax tree as a string.

§Arguments

  • db - The syntax group.
  • syntax_root - The syntax root.
  • config - The formatter configuration.

§Returns

  • String - The formatted file.