Enhanced C#
Language of your choice: library documentation
|
Contains IndexToLine method. More...
Contains IndexToLine method.
Public Member Functions | |
SourcePos | IndexToLine (int index) |
Returns the position in a source file of the specified index. More... | |
SourcePos Loyc.Syntax.IIndexToLine.IndexToLine | ( | int | index | ) |
Returns the position in a source file of the specified index.
If index is negative, this should return a SourcePos where Line and PosInLine are zero (signifying an unknown location). If index is beyond the end of the file, this should retun the final position in the file.
Implemented in Loyc.Syntax.Lexing.BaseLexer< CharSrc >, Loyc.Syntax.IndexPositionMapper< CharSource >, Loyc.Syntax.Lexing.LexerWrapper< Token >, Loyc.Syntax.Lexing.TokenListAsLexer, Loyc.Syntax.SourceFileWithLineRemaps, and Loyc.Syntax.EmptySourceFile.