Expand description
The debug location that can be used to locate a position in a document or a file.
Structs§
- Document
Position - A serializable physical position in a document.
- Element
Point - A point on the element tree.
- File
Location - A resolved source (text) location.
- Flat
Source Location - A flat resolved source (text) location.
- FsData
Source - A file system data source.
- Memory
Data Source - A in-memory data source.
- Source
Location - A resolved source (text) location.
- Source
Range - A resolved source (text) range.
- Source
Span Offset - Unevaluated source span with offset.
- Typst
Position - A physical position in a document.
Enums§
- Data
Source - Data source for a document.
Type Aliases§
- Char
Position Deprecated - The legacy name of the character position.
- Char
Range Deprecated - 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.
- RawSource
Span - Raw representation of a source span.
- Source
Span - 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.