A default implementation of ISourceFile based on IndexPositionMapper.
More...
Source file:
A default implementation of ISourceFile based on IndexPositionMapper.
|
CharSource | Text [get] |
|
string? | FileName [get] |
|
int | LineCount [get] |
|
string | FileName [get] |
|
ICharSource | Text [get] |
|
|
| SourceFile (CharSource source, ILineColumnFile startingPos=null) |
|
| SourceFile (CharSource source, string fileName) |
|
| SourceFile (ICharSource source, ILineColumnFile startingPos=null) |
|
| SourceFile (ICharSource source, string fileName) |
|
| IndexPositionMapper (CharSource source, ILineColumnFile startingPos=null) |
| Initializes CharIndexPositionMapper. More...
|
|
| IndexPositionMapper (CharSource source, string fileName) |
|
LineColumnFile | IndexToLine (int index) |
| Returns the position in a source file of the specified index. More...
|
|
int | LineToIndex (int lineNo) |
| Returns the index in a source file of the beginning of the specified line, where the first line is number 1, not 0. More...
|
|
int | LineToIndex (ILineAndColumn pos) |
|
| IndexPositionMapper (IListSource< char > source, SourcePos startingPos=null) |
|
| IndexPositionMapper (IListSource< char > source, string fileName) |
|
|
void | Reset (CharSource source, string fileName) |
| Reinitializes the object (as though the constructor were called again). More...
|
|
void | Reset (CharSource source, ILineColumnFile startingPos=null) |
|
LineColumnFile | NewSourcePos (int Line, int PosInLine) |
|
void | ReadUntilAfter (int toIndex) |
|
bool | AdvanceAfterNextNewline (ref int index) |
|