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.
Examples:
# a mapping
x: 1
<< : *DEFAULTS # an alias node referring to anchor `DEFAULTS`
Import path
import codeql.yaml.Yaml
Predicates
eval | Gets the YAML value this node corresponds to after resolving aliases and includes. |
getAChild | Gets a child of this node, as a YAML value. |
getAChildNode | Gets a child node of this node. |
getAPrimaryQlClass | Gets the primary QL class for this node. |
getAnchor | Gets the anchor associated with this node, if any. |
getChild | Gets the |
getChildNode | Gets the |
getDocument | Gets the toplevel document to which this node belongs. |
getFile | Gets the file this node comes from. |
getLocation | Gets the |
getNumChild | Gets the number of child nodes of this node. |
getParentNode | Gets the parent node of this node, which is always a collection. |
getTag | Gets the tag of this node. |
hasStandardTypeTag | Holds if this node is tagged with a standard type tag of the form |
toString | Gets a textual representation of this node. |