pub fn measure_ast(root: &Node) -> Option<AstStats>
Compute node count and maximum nesting depth with checked arithmetic.