예제 #1
0
 public override string ToString(string indent, bool last)
 {
     return(indent + NodePrefix(last) + Type + "\r\n" +
            DeclSpec.ToString(indent + ChildrenPrefix(last), false) +
            Declarator.ToString(indent + ChildrenPrefix(last), false) +
            DeclList.ToString(indent + ChildrenPrefix(last), false) +
            CompoundStat.ToString(indent + ChildrenPrefix(last), true));
 }
예제 #2
0
 public override string ToString(string indent, bool last)
 {
     return(indent + NodePrefix(last) + Type + "\r\n" +
            DeclList.ToString(indent + ChildrenPrefix(last), false) +
            StatList.ToString(indent + ChildrenPrefix(last), true));
 }