Krikri::Lint::NodeUtil
Instance methods
each_entry(mapping : YAML::Nodes::Mapping, &)
Iterate a mapping's flat [k1, v1, k2, v2, ...] node list as pairs.
entry(mapping : YAML::Nodes::Mapping, key : String) : Tuple(YAML::Nodes::Node, YAML::Nodes::Node) | Nil
Find a mapping entry by key name; yields the key and value nodes.
1-based line/column, falling back to 1 for nodes without position data (should not happen with YAML::Nodes.parse output).
Depth-first walk of every node in the tree (iterative; a recursive yield-based implementation hits Crystal's recursive block-inlining limit).