Package io.github.qishr.cascara.lang.yaml.processor
Class YamlEmitter
java.lang.Object
io.github.qishr.cascara.lang.yaml.processor.YamlEmitter
public class YamlEmitter
Responsible for converting a YamlNode AST back into a valid YAML string.This emitter is high-fidelity: it prioritizes preserving the original NodeStyle and QuoteStyle of nodes while ensuring that comments are placed correctly relative to their owner nodes.
Indentation Logic
The emitter maintains a virtual column through the indent parameters passed
during recursive calls. It handles special cases like "compact" sequences where
the mapping starts on the same line as the sequence dash (- key: value).
Constructor Summary
| Constructor | Description |
|---|---|
| YamlEmitter() |