Enums§
- Position
Encoding - How the LSP client counts column offsets within a line.
Functions§
- byte_
offset_ to_ position - Convert a byte offset in
sourceto aPositionwhose column unit depends on the negotiatedPositionEncoding. - encoding
- Read the negotiated encoding (falls back to UTF-16 if never set).
- is_
valid_ solidity_ identifier - Check whether
nameis a valid Solidity identifier - position_
to_ byte_ offset - Convert an LSP
Positionposition 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.