Module source_map

Source
Expand description

SourceMap related types and operations.

Structs§

DistinctSources
FileLines
FileNameDisplay
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.
SourceFile
A single source in the SourceMap.
SourceFileAndBytePos
SourceFileAndLine
SourceFileHash
The hash of the on-disk source file used for debug info.
SourceMap
Stores all the sources of the current compilation session.
StableSourceFileId

Enums§

FileName
ResolveError
An error that occurred while resolving a path.
SourceFileHashAlgorithm
SpanLinesError
SpanSnippetError
An error that can occur when converting a Span to a snippet.

Functions§

char_width

Type Aliases§

FileLinesResult