Module source_map

Module source_map 

Source
Expand description

SourceMap related types and operations.

Structs§

DistinctSources
FileNameDisplay
A display wrapper for FileName.
FileResolver
Performs file resolution by applying import paths and mappings.
LineInfo
Loc
A source code location used for error reporting.
MalformedSourceMapPositions
MultiByteChar
Identifies an offset of a multi-byte character in a SourceFile.
OffsetOverflowError
Sum of all file lengths is over u32::MAX.
RealFileLoader
Default file loader that uses std::fs.
SourceFile
A single source in the SourceMap.
SourceFileAndBytePos
SourceFileAndLine
SourceMap
Stores all the sources of the current compilation session.
SpanLoc
A source code location used for error reporting.
WithSourceFile
A value paired with a source file.

Enums§

FileName
The name of a source file.
ResolveError
An error that occurred while resolving a path.
SpanLinesError
SpanSnippetError
An error that can occur when converting a Span to a snippet.

Traits§

FileLoader
Abstraction over IO operations.

Functions§

char_width

Type Aliases§

FileLines