The [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.
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.
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).
Parameters
path: Iterable<unknown>
OptionalkeepScalar: boolean
Returns unknown
hasAllNullValues
hasAllNullValues(allowScalar?): boolean
Parameters
OptionalallowScalar: boolean
Returns boolean
hasIn
hasIn(path): boolean
Checks if the collection includes a value with the key key.
Parameters
path: Iterable<unknown>
Returns boolean
setIn
setIn(path, value): void
Sets a value in this collection. For !!set, value needs to be a
boolean to add/remove the item from the set.
Parameters
path: Iterable<unknown>
value: unknown
Returns void
toJSON
toJSON(_?, ctx?): unknown[]
If ctx is given, the return type is actually Map<unknown, unknown>,
but TypeScript won't allow widening the signature of a child method.
An optional anchor on this node. Used by alias nodes.