Interface ISourceText
Represents source code input text (usually text from file)
Namespace: NFX.CodeAnalysis.Source
Assembly: NFX.dll
Syntax
public interface ISourceText
Properties
EOF
Indicates whether last character has been read
Declaration
bool EOF { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Language
Indicates what language this source is supplied in
Declaration
Language Language { get; }
Property Value
| Type | Description |
|---|---|
| Language |
Name
Provides a meaningfull name to a source code
Declaration
string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
PeekChar()
Returns next char without advancing position
Declaration
char PeekChar()
Returns
| Type | Description |
|---|---|
| System.Char |
ReadChar()
Returns next char and advances position
Declaration
char ReadChar()
Returns
| Type | Description |
|---|---|
| System.Char |
Reset()
Resets source to beginning
Declaration
void Reset()