pub fn enclosing_node<'a>(node: Node<'a>, kinds: &[&str]) -> Option<Node<'a>>
Walk up node’s parents until one of kinds is found.
node
kinds