Enhanced C#
Language of your choice: library documentation
Public static fields | Properties | Public Member Functions | Protected fields | List of all members
Loyc.Syntax.LineAndCol Class Reference

Please use the new name of this class: LineAndColumn. Holds a line number (Line) and a position in the line (Column). 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.ILineAndColumn Loyc.Syntax.LineAndColumn Loyc.Syntax.SourcePos Loyc.Syntax.LineColumnFile Loyc.Syntax.SourcePosAndIndex Loyc.Syntax.LineColumnFileAndIndex

Remarks

Please use the new name of this class: LineAndColumn. Holds a line number (Line) and a position in the line (Column). 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 Column. Line=0 signifies nowhere in particular, or an unknown location.

Public static fields

static LineAndCol Nowhere = new LineAndCol()
 

Properties

int Line [get]
 
int Column [get]
 
int PosInLine [get]
 
- Properties inherited from Loyc.Syntax.ILineAndColumn
int Line [get]
 
int Column [get]
 

Public Member Functions

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

Protected fields

int _line
 
int _column