Struct LineAndColumnPosition
Specifies a diagnostic display position in source code.
public readonly struct LineAndColumnPosition
- Inherited Members
Remarks
Creates a source position from an identifier, line and column.
Constructors
LineAndColumnPosition(string, int, int)
Specifies a diagnostic display position in source code.
public LineAndColumnPosition(string identifier, int line, int column)
Parameters
identifierstringThe source document identifier.
lineintThe one-based source line.
columnintThe one-based source column.
Remarks
Creates a source position from an identifier, line and column.
Properties
Column
Gets the one-based source column.
public int Column { get; }
Property Value
- int
The one-based source column.
Identifier
Gets the source document identifier, if known.
public string Identifier { get; }
Property Value
- string
The source document identifier.
Line
Gets the one-based source line.
public int Line { get; }
Property Value
- int
The one-based source line.
Unknown
Gets an unknown source position.
public static LineAndColumnPosition Unknown { get; }