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

Please use the new name of this class: LineColumnFile. Holds a filename (FileName), a line number (Line) and a position in the line (Column), representing a position in a source code file. More...


Source file:
Inheritance diagram for Loyc.Syntax.SourcePos:
Loyc.Syntax.LineAndColumn Loyc.Syntax.ILineColumnFile Loyc.Syntax.LineAndCol Loyc.Syntax.ILineAndColumn Loyc.Syntax.IHasFileName Loyc.Syntax.ILineAndColumn Loyc.Syntax.LineColumnFile Loyc.Syntax.SourcePosAndIndex Loyc.Syntax.LineColumnFileAndIndex

Remarks

Please use the new name of this class: LineColumnFile. Holds a filename (FileName), a line number (Line) and a position in the line (Column), 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 LineColumnFile Nowhere = new LineColumnFile()
 
- 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 Column [get]
 
int PosInLine [get]
 
- Properties inherited from Loyc.Syntax.ILineAndColumn
int Line [get]
 
int Column [get]
 
- Properties inherited from Loyc.Syntax.IHasFileName
string FileName [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.LineAndColumn
 LineAndColumn (int Line, int Column)
 
- Public Member Functions inherited from Loyc.Syntax.LineAndCol
 LineAndCol (int Line, int Column)
 
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 _column