Mapping Node
class MappingNode @JvmOverloads constructor(tag: Tag, val value: List<NodeTuple>, flowStyle: FlowStyle, resolved: Boolean = true, startMark: Mark? = null, endMark: Mark? = null) : CollectionNode<NodeTuple>
Represents a map.
A map is a collection of unsorted key-value pairs.
Parameters
tag
tag of the node
resolved
true when the tag is implicitly resolved
value
the entries of this map
flow Style
the flow style of the node
start Mark
start
end Mark
end
Properties
Link copied to clipboard
The ordered list of blank lines and block comments (full line) that appear before this node.
Link copied to clipboard
The ordered list of blank lines and block comments (full line) that appear AFTER this node.
Link copied to clipboard
The ordered list of in-line comments. The first of which appears at the end of the line represented by this node. The rest are in the following lines, indented per the Spec to indicate they are continuation of the inline comment.
Link copied to clipboard
Indicates if this node must be constructed in two steps.