public int depth() {int n = 0;RuleContext p = this;while ( p!=null ) {p = p.parent;n++;}return n;}

public virtual int Depth(){int n = 0;Antlr4.Runtime.RuleContext p = this;while (p != null){p = p._parent;n++;}return n;}
