A node in the AST representation of a YAML file, which may either be a YAML value (such as a scalar or a collection) or an alias node referring to some other YAML value.
# a mapping x: 1 << : *DEFAULTS # an alias node referring to anchor `DEFAULTS`
Known direct subtypes
Gets the YAML value this node corresponds to after resolving aliases and includes.
Gets a child of this node, as a YAML value.
Gets a child node of this node.
Gets the primary QL class for the Locatable.
Gets the anchor associated with this node, if any.
Gets the toplevel document to which this node belongs.
Gets this element’s location.
Gets the number of child nodes of this node.
Gets the parent node of this node, which is always a collection.
Gets the tag of this node.
Holds if this node is tagged with a standard type tag of the form
Gets a textual representation of this element.
Gets the line on which this element ends.
Gets the file this program element comes from.
Gets the number of lines covered by this element.
Gets a comma-separated list of the names of the primary CodeQL classes to which this element belongs.
Gets the line on which this element starts.