Enhanced C#
Language of your choice: library documentation
|
Holds a filename (FileName), a line number (Line) and a position in the line (PosInLine), representing a position in a source code file. More...
Holds a filename (FileName), a line number (Line) and a position in the line (PosInLine), representing a position in a source code file.
Line and column numbering both start at one (1). Line=0 signifies nowhere in particular. Instances are immutable.
Public static fields | |
new static SourcePos | Nowhere = new SourcePos() |
Public static fields inherited from Loyc.Syntax.LineAndCol | |
static LineAndCol | Nowhere = new LineAndCol() |
Properties | |
string | FileName [get] |
Properties inherited from Loyc.Syntax.LineAndCol | |
int | Line [get] |
int | PosInLine [get] |
Public Member Functions | |
SourcePos (string FileName, int Line, int PosInLine) | |
override string | ToString () |
override bool | Equals (object obj) |
override int | GetHashCode () |
Public Member Functions inherited from Loyc.Syntax.LineAndCol | |
LineAndCol (int Line, int PosInLine) | |
override string | ToString () |
override bool | Equals (object obj) |
override int | GetHashCode () |
Protected fields | |
string | _fileName |
Protected fields inherited from Loyc.Syntax.LineAndCol | |
int | _line |
int | _posInLine |