상속: AstRecursiveVisitor
예제 #1
0
            public static int Count(ICode ast, ICode toCount)
            {
                var v = new VisitorCounter(toCount);

                v.Visit(ast);
                return(v.count);
            }
 public static int GetCount(ICode ast, ICode toCount) {
     var v = new VisitorCounter {
         toCount = toCount
     };
     v.Visit(ast);
     return v.count;
 }