szabototo89 / CodeSharper

Refactoring tool, written in C# and using TDD for developing
2 stars 0 forks source link

Refactor TextSpan class #12

Closed szabototo89 closed 10 years ago

szabototo89 commented 10 years ago

We should refactor TextSpan class.

szabototo89 commented 10 years ago

New idea: Instead of (Column, Line) pair we will use Start and Stop indices which represent one dimensional value of text.

public struct TextSpan {
   public int Start { get; }
   public int Stop { get; }
   // ...
}