dlang-community / D-Scanner

Swiss-army knife for D source code
Boost Software License 1.0
238 stars 80 forks source link

also add byte indices to diagnostic ranges #906

Closed WebFreak001 closed 1 year ago

WebFreak001 commented 1 year ago

For tools wanting to read from the source file this makes it much easier to look up the code.

Before we tag the new API with start and end locations as new tag, we better just add this together with everything, since then we don't need to change the API again later. Grouping together lines / columns as size_t[2] also makes the previous API better to understand, e.g. because of size_t line, size_t startColumn, size_t endColumn now being size_t line, size_t[2] columns