Structs§

  • Handles the formatting of a CST and stores the context how the CST should be formatted (user preferences). The formatter is passed to the Format implementation of every node in the CST so that they can use it to format their children.
  • Snapshot of the formatter state used to handle backtracking if errors are encountered in the formatting process and the formatter has to fallback to printing raw tokens