Skip to main content

Module document

Module document 

Source
Expand description

One source file of a project: its text, its syntax tree, and conversion between byte offsets and LSP positions.

Structsยง

Document ๐Ÿ”’

Enumsยง

Encoding ๐Ÿ”’
The unit LSP positions count columns in, agreed with the client at startup.

Functionsยง

is_name_char ๐Ÿ”’
Names are ASCII, so a non-ASCII character always ends one.
to_u32 ๐Ÿ”’
LSP counts in u32; a source file never comes near that size.