Example #1
0
 public int GetIndex(CodeLocation location)
 {
     return(Indices[location.Line] + location.Position);
 }
Example #2
0
 public CodeLocation GetLocation(int index, CodeLocation startLocation)
 {
     Contract.Requires(index >= 0);
     return(GetLocation(index, startLocation.Line));
 }
Example #3
0
 public char this[CodeLocation location] {
     get { return(Code[GetIndex(location)]); }
 }