| 67 | }; |
| 68 | |
| 69 | class Range : public Serializable { |
| 70 | public: |
| 71 | Range(Position _start = Position(0, 0), Position _end = Position(0, 0)); |
| 72 | Position start; |
| 73 | Position end; |
| 74 | |
| 75 | nlohmann::json Serialize() override; |
| 76 | void Deserialize(nlohmann::json json) override; |
| 77 | |
| 78 | bool operator==(const Range &range) const { |
| 79 | return start == range.start && end == range.end; |
| 80 | } |
| 81 | |
| 82 | bool operator<(const Range &rhs) const { |
| 83 | if (start != rhs.start) { |
| 84 | return start < rhs.start; |
| 85 | } else { |
| 86 | return end < rhs.end; |
| 87 | } |
| 88 | } |
| 89 | }; |
| 90 | |
| 91 | class Location : public Serializable { |
| 92 | public: |
no test coverage detected