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.LineAndCol Class Reference

Holds a line number (Line) and a position in the line (PosInLine). This class isn't really needed in Loyc but is separated from SourcePos in case anyone might want position without a filename. More...


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

Remarks

Holds a line number (Line) and a position in the line (PosInLine). This class isn't really needed in Loyc but is separated from SourcePos in case anyone might want position without a filename.

Numbering starts at one for both Line and PosInLine. Line=0 signifies nowhere in particular, or an unknown location.

Public static fields

static LineAndCol Nowhere = new LineAndCol()
 

Properties

int Line [get]
 
int PosInLine [get]
 

Public Member Functions

 LineAndCol (int Line, int PosInLine)
 
override string ToString ()
 
override bool Equals (object obj)
 
override int GetHashCode ()
 

Protected fields

int _line
 
int _posInLine