public DomRegion(Location start, Location end) : this(start.Y, start.X, end.Y, end.X) { }
public static DomRegion FromLocation(Location start, Location end) { return(new DomRegion(start.Y, start.X, end.Y, end.X)); }
static DomRegion TranslateRegion(ICSharpCode.NRefactory.Location start, ICSharpCode.NRefactory.Location end) { return(new DomRegion(start.Y, start.X, end.Y, end.X)); }
DomRegion CreateRegion(int startOffset, int endOffset) { ICSharpCode.NRefactory.Location loc = Utils.GetLocationInfoFromOffset(fileContent, startOffset); ICSharpCode.NRefactory.Location loc2 = Utils.GetLocationInfoFromOffset(fileContent, endOffset); return(new DomRegion(loc.Line, loc.Column, loc2.Line, loc2.Column)); }