Structs§
- Line
Index - Index for fast byte offset to
SourceLocation
conversions. - Linear
Locator - Converts source code byte-offset to Python convention line and column numbers.
- Located
Error - OneIndexed
- Type-safe wrapper for a value whose logical range starts at
1
, for instance the line or column numbers in a file - Random
Locator - Converts source code byte-offset to Python convention line and column numbers.
- Source
Code - Gives access to the source code of a file and allows mapping between
TextSize
andSourceLocation
. - Source
Location - Source
Range - Universal
Newline Iterator - Like
str
, but accommodates LF, CRLF, and CR line endings, the latter of which are not supported bystr
.
Functions§
- find_
newline - Finds the next newline character. Returns its position and the
LineEnding
.