public string GetStringOfEntireStreamContentsWithNodeTypesOnly(ITreeNodeStream nodes)
 {
     StringBuilder buf = new StringBuilder();
     for (int i = 0; i < nodes.Size(); i++)
     {
         object t = nodes.LT(i + 1);
         int type = nodes.TreeAdaptor.GetNodeType(t);
         if (!((type == Token.DOWN) || (type == Token.UP)))
         {
             buf.Append(" ");
             buf.Append(type);
         }
     }
     return buf.ToString();
 }
        public string GetStringOfEntireStreamContentsWithNodeTypesOnly(ITreeNodeStream nodes)
        {
            StringBuilder buf = new StringBuilder();

            for (int i = 0; i < nodes.Size(); i++)
            {
                object t    = nodes.LT(i + 1);
                int    type = nodes.TreeAdaptor.GetNodeType(t);
                if (!((type == Token.DOWN) || (type == Token.UP)))
                {
                    buf.Append(" ");
                    buf.Append(type);
                }
            }
            return(buf.ToString());
        }
Example #3
0
 public virtual int Size()
 {
     return(input.Size());
 }
 public int Size()
 {
     return(input.Size());
 }