Ejemplo n.º 1
0
 public override int VisitLeaf(TreeLeaf <T> leaf)
 {
     return(0);
 }
Ejemplo n.º 2
0
 public abstract void Visit(TreeLeaf l);
Ejemplo n.º 3
0
 public abstract Val VisitLeaf(TreeLeaf <T> leaf);
Ejemplo n.º 4
0
 public override void Visit(TreeLeaf l)
 {
     currDepth += 1;
     maxDepth   = currDepth > maxDepth ? currDepth : maxDepth;
     currDepth -= 1;
 }