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] |
|
ICharSource | Text [get] |
|
string | FileName [get] |
|
|
| SourceFile (CharSource source, SourcePos startingPos=null) |
|
| SourceFile (CharSource source, string fileName) |
|
| IndexPositionMapper (CharSource source, SourcePos startingPos=null) |
| Initializes CharIndexPositionMapper. More...
|
|
| IndexPositionMapper (CharSource source, string fileName) |
|
SourcePos | 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 (LineAndCol pos) |
|
|
void | Reset (CharSource source, string fileName) |
| Reinitializes the object (as though the constructor were called again). More...
|
|
void | Reset (CharSource source, SourcePos startingPos=null) |
|
SourcePos | NewSourcePos (int Line, int PosInLine) |
|
void | ReadUntilAfter (int toIndex) |
|
bool | AdvanceAfterNextNewline (ref int index) |
|