Pretty-prints an AST node into a string representation.

  • Parameters

    • node: AstNode

      The AST node to format.

    Returns string

    A string that represents the formatted AST node.