Ivan Kryukov
Ivan Kryukov
I have just started looking into this as well :). The parsing happens in `languageserver:::parse_expr` (https://github.com/REditorSupport/languageserver/blob/master/R/document.R#L317) and `languageserver:::parse_document` (https://github.com/REditorSupport/languageserver/blob/master/R/document.R#L400) I think it should be possible to match the `xml_parse_data` and...
Correction: `languageserver::expr_range` gives location in 0-based UTF-16 coding units. To match with `xml_parse_data`, we need something like this, I think: ```R get_srcref_range