Enhanced C#
Language of your choice: library documentation

Documentation moved to ecsharp.net

GitHub doesn't support HTTP redirects, so you'll be redirected in 3 seconds.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public static fields | Properties | Public Member Functions | Protected fields | List of all members
Loyc.Syntax.SourcePos Class Reference

Holds a filename (FileName), a line number (Line) and a position in the line (PosInLine), representing a position in a source code file. More...


Source file:
Inheritance diagram for Loyc.Syntax.SourcePos:
Loyc.Syntax.LineAndCol Loyc.Syntax.SourcePosAndIndex

Remarks

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