Expand description
Utilities for working with source code and printing nicely formatted diagnostic information like warnings and errors.
§Optional Features
Extra functionality is accessible by enabling feature flags. The features currently available are:
- serialization - Adds
Serialize
andDeserialize
implementations for use withserde
Structs§
- Byte
Index - A byte position in a source file.
- Byte
Offset - A byte offset in a source file
- Column
Index - A zero-indexed column offset into a source file
- Column
Number - A 1-indexed column number. Useful for pretty printing source locations.
- Column
Offset - A column offset in a source file
- FileId
- A handle that points to a file in the database.
- Files
- A database of source files.
- Line
Index - A zero-indexed line offset into a source file
- Line
Number - A 1-indexed line number. Useful for pretty printing source locations.
- Line
Offset - A line offset in a source file
- Location
- A location in a source file.
- Span