public DocRange(Pos start, Pos end) { this.start = start; this.end = end; }
public PosData(string file, Pos caret, Node[] selectedNode) { File = file; Caret = caret; SelectedNode = selectedNode; }
public bool IsInside(Pos pos) { return((start.line < pos.line || (start.line == pos.line && pos.character >= start.character)) && (end.line > pos.line || (end.line == pos.line && pos.character <= end.character))); }