Optional
anchorOptional
commentA comment on or immediately after this
Optional
commentA comment before this
Optional
flowIf true, stringify this and all child nodes using flow rather than block styles.
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.
Optional
spaceA blank line before this node and its commentBefore
Optional
srcThe CST token that was composed into this node.
Optional
tagA fully qualified tag, if required
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).
Optional
keepScalar: 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).
Optional
keepScalar: booleanInstance of Type, Map, or Object
An optional anchor on this node. Used by alias nodes.