Module leo_span::source_map
source · Structs§
- File / Line / Column information on a
BytePos
. - Identifies an offset of a multi-byte character in a
SourceFile
. - A single source in the
SourceMap
. - The source map containing all recorded sources, methods to register new ones, and methods to query about spans in relation to recorded sources.
- Actual data of the source map. We use this setup for purposes of interior mutability.
- Detailed information on a
Span
.
Enums§
- A file name.
Functions§
- Finds all newlines, multi-byte characters, and non-narrow characters in a SourceFile.
- Is the env var
LEO_TESTFRAMEWORK
not enabled? - Replaces
\r\n
with\n
in-place insrc
. - Normalizes the source code and records the normalizations.
- Removes UTF-8 BOM, if any.