Skip to main content

Module cst

Module cst 

Source
Expand description

Concrete syntax tree with byte-identical round-trip fidelity. Concrete Syntax Tree (CST) for .cabal files.

The CST is a flat arena of nodes that mirrors the exact structure of the .cabal file, preserving all formatting details: whitespace, comments, blank lines, indentation style. The render() method reproduces the original source byte-for-byte when no edits have been made.

Structs§

CabalCst
The concrete syntax tree for a .cabal file.
CstNode
A single node in the CST arena.

Enums§

CstNodeKind
The kind of a CST node.