Esempio n. 1
0
        public int getpos(int pos)
        {
            int n = pos - head;

            for (CommentList c = comments; c != null; c = c.tail)
            {
                if (pos > c.spos)
                {
                    n += c.len;
                }
            }
            return(n);
        }
Esempio n. 2
0
 public CommentList(int st, int ln, CommentList t)
 {
     spos = st; len = ln;
     tail = t;
 }
 /// <exclude/>
 public CommentList(int st,int ln, CommentList t)
 {
     spos = st; len = ln;
     tail = t;
 }
Esempio n. 4
0
 public LineList tail; // previous line!
 public LineList(int h, LineList t)
 {
     head     = h;
     comments = null;
     tail     = t;
 }
        public LineList tail; // previous line!

        #endregion Fields

        #region Constructors

        /// <exclude/>
        public LineList(int h, LineList t)
        {
            head=h;
            comments = null;
            tail=t;
        }