Interface TextReaderLookahead
Read-only forward lookahead abstraction over lexer input.
public interface TextReaderLookahead
- Extension Methods
Properties
Column
Current 1-based column number.
int Column { get; }
Property Value
IsEnd
Indicates whether the input is at end of stream.
bool IsEnd { get; }
Property Value
Line
Current 1-based line number.
int Line { get; }
Property Value
Position
Current zero-based absolute position in the stream.
int Position { get; }
Property Value
Methods
Peek(int)
Peeks the character at the specified lookahead offset.
Returns -1 when end of input is reached.
int Peek(int offset)
Parameters
offsetintZero-based lookahead offset.