served.lsp.textdocumentmanager

Undocumented in source.

Members

Aliases

isIdentifierSeparatingChar
deprecated alias isIdentifierSeparatingChar = isDIdentifierSeparatingChar
Undocumented in source.

Functions

countBytesUntilUTF16Index
size_t countBytesUntilUTF16Index(const(char)[] text, size_t utf16Offset)
Undocumented in source. Be warned that the author may not have intended to support it.
countUTF16Length
size_t countUTF16Length(const(char)[] text)
Undocumented in source. Be warned that the author may not have intended to support it.
isDIdentifierSeparatingChar
bool isDIdentifierSeparatingChar(dchar c)
isValidDIdentifier
bool isValidDIdentifier(const(char)[] s)
wordInLine
uint[2] wordInLine(const(char)[] line, uint character)
wordInLineBytes
size_t[2] wordInLineBytes(const(char)[] line, size_t bytes)

Returns a range of the identifier/word at the given position.

wordInLineImpl
SizeT[2] wordInLineImpl(const(char)[] line, SizeT character)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

testEOF_byte
enum testEOF_byte;
Undocumented in source.
testEOF_offset
enum testEOF_offset;
Undocumented in source.
testEOF_position
enum testEOF_position;
Undocumented in source.
testLinePostUni_byte
enum testLinePostUni_byte;
Undocumented in source.
testLinePostUni_offset
enum testLinePostUni_offset;
Undocumented in source.
testLinePostUni_position
enum testLinePostUni_position;
Undocumented in source.
testLinePreUni_byte
enum testLinePreUni_byte;
Undocumented in source.
testLinePreUni_offset
enum testLinePreUni_offset;
Undocumented in source.
testLinePreUni_position
enum testLinePreUni_position;
Undocumented in source.
testMidAsciiLine_byte
enum testMidAsciiLine_byte;
Undocumented in source.
testMidAsciiLine_offset
enum testMidAsciiLine_offset;
Undocumented in source.
testMidAsciiLine_position
enum testMidAsciiLine_position;
Undocumented in source.
testSOF_byte
enum testSOF_byte;
Undocumented in source.
testSOF_offset
enum testSOF_offset;
Undocumented in source.
testSOF_position
enum testSOF_position;
Undocumented in source.

Structs

Document
struct Document

in-memory representation of a file at any given URI. Not thread-safe.

PerDocumentCache
struct PerDocumentCache(T)

Helper structure for storing any data of type T on a per-file basis.

TextDocumentManager
struct TextDocumentManager

Helper struct which should have one unique instance in the application which processes document events sent by a LSP client to an LSP server and creates an in-memory representation of all the files managed by the client.

Variables

testUnicodeDocument
Document testUnicodeDocument;
Undocumented in source.

Meta