Skip to main content

node_depth_lte

Function node_depth_lte 

Source
pub fn node_depth_lte(max: usize) -> NodeDepthLte
Expand description

Returns a predicate that is true when the node’s tree-depth ≤ max.

§Example

use tree_sitter_utils::node_depth_lte;
let _ = node_depth_lte(5);