Sourcemeta Core 0.0.0
Loading...
Searching...
No Matches
sourcemeta::core::YAMLRoundTrip::NodeStyle Struct Reference

Holds the formatting details recorded for a single node. More...

Public Attributes

std::optional< ScalarStylescalar
 The scalar presentation style.
std::optional< CollectionStylecollection
 The collection presentation style.
std::optional< Chompingchomping
 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< JSONcontent_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.

Detailed Description

Holds the formatting details recorded for a single node.

Member Data Documentation

◆ content_value

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


The documentation for this struct was generated from the following file: