This pull request adds YAML-styled serialization support for YamlNode family, namely YamlScalar, YamlList, and YamlMap.
Serialization is opinionated; indentations are two-spaces per indentation level, and flow-styled nodes are single-line.
The implementation leaves out indentation on first lines for more straightforward concatenation logic and does not modify test logic because of inconsistent styling of YAML specification examples.
This pull request adds YAML-styled serialization support for YamlNode family, namely
YamlScalar
,YamlList
, andYamlMap
.Serialization is opinionated; indentations are two-spaces per indentation level, and flow-styled nodes are single-line.
The implementation leaves out indentation on first lines for more straightforward concatenation logic and does not modify test logic because of inconsistent styling of YAML specification examples.