print

open fun print(node: Node): String(source)

Prints the given node to a string while preserving the original formatting where possible and applying changes where the AST has been modified. This method analyzes the changes made to the AST since lexical preservation was setup and generates output that: - Preserves original formatting for unchanged portions - Applies appropriate formatting for new or modified content - Maintains consistency with the original code style

Return

A string representation of the node with preserved formatting

Parameters

node

The node to print (typically a CompilationUnit)