コード例 #1
0
ファイル: Visitor.cs プロジェクト: JakubGrobelny/University
 public override int VisitLeaf(TreeLeaf <T> leaf)
 {
     return(0);
 }
コード例 #2
0
 public abstract void Visit(TreeLeaf l);
コード例 #3
0
ファイル: Visitor.cs プロジェクト: JakubGrobelny/University
 public abstract Val VisitLeaf(TreeLeaf <T> leaf);
コード例 #4
0
 public override void Visit(TreeLeaf l)
 {
     currDepth += 1;
     maxDepth   = currDepth > maxDepth ? currDepth : maxDepth;
     currDepth -= 1;
 }