level

open override var level: Int

Returns the number of levels above this node -- the distance from the root to this node. If this node is the root, returns 0.

Return

the number of levels above this node