Skip to main content

format

Function format 

Source
pub fn format(
    tree: &SyntaxTree,
    config: &FormatConfig,
) -> Result<String, FormatError>
Expand description

Format a parsed GDScript file.

ยงErrors

Returns FormatError::Unparseable if the tree holds syntax errors, or FormatError::SafetyCheckFailed if the output does not survive the checks described on this module.