depth property

int depth

The depth of this node in the semantics tree.

The depth of nodes in a tree monotonically increases as you traverse down the tree. There's no guarantee regarding depth between siblings.

The depth is used to ensure that nodes are processed in depth order.

Implementation

int get depth => _depth;