Table of Contents

Struct TextPosition

Namespace
Pl0.Core
Assembly
Pl0.Core.dll

Represents a position in the source text.

public readonly record struct TextPosition : IEquatable<TextPosition>
Implements
Inherited Members

Constructors

TextPosition(int, int, int)

Represents a position in the source text.

public TextPosition(int Line, int Column, int Offset)

Parameters

Line int

1-based line number.

Column int

1-based column number.

Offset int

0-based character offset.

Properties

Column

1-based column number.

public int Column { get; init; }

Property Value

int

Line

1-based line number.

public int Line { get; init; }

Property Value

int

Offset

0-based character offset.

public int Offset { get; init; }

Property Value

int