Example #1
0
 private void UpdateStartPos(int diff)
 {
     StartPos += diff;
     if (NextIncludingCommentsAndSpaces != null)
     {
         NextIncludingCommentsAndSpaces.UpdateStartPos(diff);
     }
 }
Example #2
0
 private void UpdateLength()
 {
     if (m_text.Length != Length)
     {
         int diff = m_text.Length - Length;
         Length = m_text.Length;
         if (NextIncludingCommentsAndSpaces != null)
         {
             NextIncludingCommentsAndSpaces.UpdateStartPos(diff);
         }
     }
 }