Module debug_loc

Source
Expand description

The debug location that can be used to locate a position in a document or a file.

Structs§

DocumentPosition
A serializable physical position in a document.
ElementPoint
A point on the element tree.
FileLocation
A resolved source (text) location.
FlatSourceLocation
A flat resolved source (text) location.
FsDataSource
A file system data source.
MemoryDataSource
A in-memory data source.
SourceLocation
A resolved source (text) location.
SourceRange
A resolved source (text) range.
SourceSpanOffset
Unevaluated source span with offset.
TypstPosition
A physical position in a document.

Enums§

DataSource
Data source for a document.

Type Aliases§

CharPositionDeprecated
The legacy name of the character position.
CharRangeDeprecated
The legacy name of the character range.
LspPosition
A resolved file position. The position is encoded in Utf-8, Utf-16 or Utf-32. The position encoding must be negotiated via some protocol like LSP.
LspRange
A resolved file range.
RawSourceSpan
Raw representation of a source span.
SourceSpan
Unevaluated source span. The raw source span is unsafe to serialize and deserialize. Because the real source location is only known during liveness of the compiled document.