Skip to main content

Module document

Module document 

Source

Structs§

Background
A document the server loaded by itself (an LOV ontology, an owl:imports target, a configured ontology or shape), as opposed to one the editor opened.
Comments
Component containing comment text extracted from the CST (stripped of # prefix).
CurrentType
Dirty
Component indicating whether or not the document is dirty, a dirty document parsed with errors.
DocumentLinks
Component used to remember the linked documents.
Documents
Every document in the world, by URL.
DynLang
Component that allows for language specific implementation for certain things, reducing code duplication.
Element
Component that contains the parsed semantic element.
Errors
Simple wrapper for errors that derives Component
Global
Indicates that this should be a global entity, linked to all other documents
KeyWords
Component containing the typical keywords for the current language.
Label
Component containing the lsp_types::Url of the current document.
Open
Component indicating whether or not the document is actually open.
PositionComponent
Component used to wrap an incoming lsp_types::Position.
RopeC
Component containing the current source code as a LineIndex, used for LSP byte ↔ position conversions.
Snapshot
The server’s copy of a Background document, kept while the editor has it Open so it can be restored when the editor closes it.
Source
Component containing the current source code as String
Wrapped
Simple wrapper structure that derives Component

Functions§

find_document
The document labelled url, from the Documents registry (or, in a world set up without it, by scanning labels).