Visit() public method

public Visit ( ICode c ) : ICode
c ICode
return ICode
示例#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;
 }