Get the depth of a specific node within the AST.
The root node has depth 1. Returns 0 if the target is not found.
Uses reference equality (===) to identify the target.
===
Get the depth of a specific node within the AST.
The root node has depth 1. Returns 0 if the target is not found.
Uses reference equality (
===) to identify the target.