/// <exclude/>
 public void comment(int pos,int len)
 {
     // only for C-style comments not C++
     if (pos>end)
         end = pos;
     if (list==null)
     {
         list = new LineList(0,list);
         lines = 1;
     }
     list.comments = new CommentList(pos,len,list.comments);
 }
 /// <exclude/>
 public void newline(int pos)
 {
     lines++;
     backto(pos);
     list = new LineList(pos,list);
 }
 /// <exclude/>
 public void backto(int pos)
 {
     if (pos>end)
         end = pos;
     while (list!=null && list.head>=pos)
     {
         list = list.tail;
         lines--;
     }
 }
        public LineList tail; // previous line!

        #endregion Fields

        #region Constructors

        /// <exclude/>
        public LineList(int h, LineList t)
        {
            head=h;
            comments = null;
            tail=t;
        }
Beispiel #5
0
 public LineList tail; // previous line!
 public LineList(int h, LineList t)
 {
     head     = h;
     comments = null;
     tail     = t;
 }
Beispiel #6
0
 public void newline(int pos)
 {
     lines++;
     backto(pos);
     list = new LineList(pos, list);
 }
Beispiel #7
0
		public void backto(int pos)
		{
			while (list!=null && list.head>=pos)
			{
				list = list.tail;
				lines--;
			}
		}