AbstractOptionalschema: SchemaOptionaladdOptionalanchorAn optional anchor on this node. Used by alias nodes.
OptionalcommentA comment on or immediately after this
OptionalcommentA comment before this
OptionalflowIf true, stringify this and all child nodes using flow rather than block styles.
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.
OptionalspaceA blank line before this node and its commentBefore
OptionalsrcThe CST token that was composed into this node.
OptionaltagA fully qualified tag, if required
AbstractaddAdds a value to the collection.
Adds a value to the collection. For !!map and !!omap the value must
be a Pair instance or a { key, value } object, which may not have a key
that already exists in the map.
Create a copy of this collection.
Optionalschema: SchemaIf defined, overwrites the original's schema
AbstractdeleteRemoves a value from the collection.
true if the item was found and removed.
Removes a value from the collection.
true if the item was found and removed.
AbstractgetReturns 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: booleanReturns 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: booleanAbstracthasChecks if the collection includes a value with the key key.
OptionalallowScalar: booleanChecks if the collection includes a value with the key key.
AbstractsetSets a value in this collection. For !!set, value needs to be a
boolean to add/remove the item from the set.
Sets a value in this collection. For !!set, value needs to be a
boolean to add/remove the item from the set.
A plain JavaScript representation of this node.
Optional__namedParameters: ToJSOptionsAbstracttoA plain JS representation of this node
AbstracttoOptionalctx: StringifyContextOptionalonComment: () => voidOptionalonChompKeep: () => void
Customize the way that a key-value pair is resolved. Used for YAML 1.1 !!merge << handling.