Expand description
Parser that preserves trivia tokens for formatting. Token stream and trivia utilities for the parser. Trivia-preserving parser implementation
This module provides a parser that preserves comments and whitespace by attaching them to AST nodes as leading/trailing trivia.
Structs§
- Trivia
Parser Context - Parser context that preserves trivia
- Trivia
Preserving Parser - Parser that preserves trivia
Functions§
- format_
with_ trivia - Format an AST with trivia back to source code