Holds the formatting details recorded for a single node. More...
Public Attributes | |
| std::optional< ScalarStyle > | scalar |
| The scalar presentation style. | |
| std::optional< CollectionStyle > | collection |
| The collection presentation style. | |
| std::optional< Chomping > | chomping |
| The chomping behavior for a block scalar. | |
| std::size_t | explicit_indent {0} |
| The explicit block scalar indentation width. | |
| bool | indent_before_chomping {false} |
| Whether the indentation indicator precedes the chomping indicator. | |
| std::optional< std::string > | block_content |
| The original block scalar content. | |
| std::optional< std::string > | plain_content |
| The original plain scalar content. | |
| std::optional< std::string > | quoted_content |
| The original quoted scalar content. | |
| std::optional< JSON > | content_value |
| std::optional< std::string > | anchor |
| The anchor name attached to the node. | |
| std::vector< std::string > | comments_before |
| The comments preceding the node. | |
| std::optional< std::string > | comment_inline |
| The comment on the same line as the node. | |
| std::optional< std::string > | comment_on_indicator |
| The comment attached to a block scalar indicator. | |
| bool | compact_flow {false} |
| Whether the flow collection uses compact formatting. | |
Holds the formatting details recorded for a single node.
| std::optional<JSON> sourcemeta::core::YAMLRoundTrip::NodeStyle::content_value |
The value the recorded original content was captured from, so that such content is only reproduced while the document still holds that value