C# Class Loyc.Syntax.LineAndCol

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.
Mostrar archivo Open project: qwertie/ecsharp Class Usage Examples

Public Properties

Property Type Description
Nowhere LineAndCol

Protected Properties

Property Type Description
_line int
_posInLine int

Public Methods

Method Description
Equals ( object obj ) : bool
GetHashCode ( ) : int
LineAndCol ( int Line, int PosInLine ) : System
ToString ( ) : string

Protected Methods

Method Description
LineAndCol ( ) : System

Method Details

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

LineAndCol() protected method

protected LineAndCol ( ) : System
return System

LineAndCol() public method

public LineAndCol ( int Line, int PosInLine ) : System
Line int
PosInLine int
return System

ToString() public method

public ToString ( ) : string
return string

Property Details

Nowhere public_oe static_oe property

public static LineAndCol,Loyc.Syntax Nowhere
return LineAndCol

_line protected_oe property

protected int _line
return int

_posInLine protected_oe property

protected int _posInLine
return int