serve-d ~master (2022-12-14T11:55:28Z)
Dub
Repo
Document.positionToOffset
served
lsp
textdocumentmanager
Document
Converts a line/column position to an LSP offset.
struct
Document
const
size_t
positionToOffset
(
Position
position
)
Meta
Source
See Implementation
served
lsp
textdocumentmanager
Document
constructors
this
functions
applyChange
bytesToOffset
bytesToPosition
clone
eolAt
getLanguageId
length
lineAt
lineAtScope
lineByteRangeAt
lineColumnBytesToPosition
movePositionBytes
nextPositionBytes
offsetToBytes
offsetToPosition
positionToBytes
positionToOffset
rawText
setContent
wordRangeAt
static functions
nullDocument
variables
languageId
uri
version_
Converts a line/column position to an LSP offset.