Enums§
- Position
Encoding - How the LSP client counts column offsets within a line.
Functions§
- byte_
offset_ to_ position - Convert a byte offset in
sourceto an(line, column)pair whose column unit depends on the negotiatedPositionEncoding. - encoding
- Read the negotiated encoding (falls back to UTF-16 if never set).
- is_
valid_ solidity_ identifier - position_
to_ byte_ offset - Convert an LSP
(line, character)position back to a byte offset, wherecharacteris interpreted according to the negotiatedPositionEncoding. - set_
encoding - Store the negotiated encoding. Called exactly once from the LSP
initializehandler. Subsequent calls are silently ignored.