Struct LineAndColumnPosition

Namespace
Pixie.Code
Assembly
Pixie.dll

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

identifier string

The source document identifier.

line int

The one-based source line.

column int

The 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; }

Property Value

LineAndColumnPosition