SourcePosition
Represents a position in source code
public sealed record SourcePosition : IEquatable<SourcePosition>
Constructors
SourcePosition
public SourcePosition(int Line, int Column, int StartIndex = 0, int StopIndex = 0)
Represents a position in source code
| Parameter | Type | Description |
|---|---|---|
Line |
Int32 |
|
Column |
Int32 |
|
StartIndex |
Int32 |
|
StopIndex |
Int32 |
Properties
Line
public int Line { get; init; }
Column
public int Column { get; init; }
StartIndex
public int StartIndex { get; init; }
StopIndex
public int StopIndex { get; init; }