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); }
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; }
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; }