C# Class Loyc.Syntax.SourcePos

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.
Inheritance: LineAndCol
显示文件 Open project: qwertie/ecsharp Class Usage Examples

Public Properties

Property Type Description
Nowhere SourcePos

Protected Properties

Property Type Description
_fileName string

Public Methods

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

Protected Methods

Method Description
SourcePos ( ) : System

Method Details

Equals() public method

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

GetHashCode() public method

public GetHashCode ( ) : int
return int

SourcePos() protected method

protected SourcePos ( ) : System
return System

SourcePos() public method

public SourcePos ( string FileName, int Line, int PosInLine ) : System
FileName string
Line int
PosInLine int
return System

ToString() public method

public ToString ( ) : string
return string

Property Details

Nowhere public_oe static_oe property

public static SourcePos,Loyc.Syntax Nowhere
return SourcePos

_fileName protected_oe property

protected string _fileName
return string