Optionaloverwrite: booleanIf not set true, using a key that is already in the
collection will throw. Otherwise, overwrites the previous value.
OptionaladdCustomize the way that a key-value pair is resolved. Used for YAML 1.1 !!merge << handling.
OptionalanchorAn optional anchor on this node. Used by alias nodes.
OptionalcommentA comment on or immediately after this
OptionalcommentA comment before this
Removes a value from the collection.
key must contain a representation of an integer for this to succeed.
It may be wrapped in a Scalar.
Removes a value from the collection.
true if the item was found and removed.
OptionalflowIf true, stringify this and all child nodes using flow rather than block styles.
Returns item at key, or undefined if not found. By default unwraps
scalar values from their surrounding node; to disable set keepScalar to
true (collections are always returned intact).
key must contain a representation of an integer for this to succeed.
It may be wrapped in a Scalar.
Returns item at key, or undefined if not found. By default unwraps
scalar values from their surrounding node; to disable set keepScalar to
true (collections are always returned intact).
Returns item at key, or undefined if not found. By default unwraps
scalar values from their surrounding node; to disable set keepScalar to
true (collections are always returned intact).
OptionalkeepScalar: falseReturns item at key, or undefined if not found. By default unwraps
scalar values from their surrounding node; to disable set keepScalar to
true (collections are always returned intact).
OptionalkeepScalar: booleanChecks if the collection includes a value with the key key.
key must contain a representation of an integer for this to succeed.
It may be wrapped in a Scalar.
Checks if the collection includes a value with the key key.
OptionalrangeThe [start, value-end, node-end] character offsets for the part of the
source parsed into this node (undefined if not parsed). The value-end
and node-end positions are themselves not included in their respective
ranges.
Sets a value in this collection. For !!set, value needs to be a
boolean to add/remove the item from the set.
If key does not contain a representation of an integer, this will throw.
It may be wrapped in a Scalar.
Sets a value in this collection. For !!set, value needs to be a
boolean to add/remove the item from the set.
OptionalspaceA blank line before this node and its commentBefore
OptionalsrcThe CST token that was composed into this node.
OptionaltagA fully qualified tag, if required
StatictagA plain JavaScript representation of this node.
Optional__namedParameters: ToJSOptionsStaticfrom
Adds a value to the collection.