| 32 | using namespace langutil; |
| 33 | |
| 34 | std::optional<LineColumn> parseLineColumn(Json const& _lineColumn) |
| 35 | { |
| 36 | if (_lineColumn.is_object() && _lineColumn["line"].is_number_integer() && _lineColumn["character"].is_number_integer()) |
| 37 | return LineColumn{_lineColumn["line"].get<int>(), _lineColumn["character"].get<int>()}; |
| 38 | else |
| 39 | return std::nullopt; |
| 40 | } |
| 41 | |
| 42 | Json toJson(LineColumn const& _pos) |
| 43 | { |
no outgoing calls
no test coverage detected