TapeSourceSpan
Namespace: Hex1b.Automation
Assembly: Hex1b.dll
Identifies a range of Tape source text.
csharp
public readonly record struct TapeSourceSpan : IEquatable<TapeSourceSpan>Implements
Constructors
TapeSourceSpan(string?, int, int, int, int)
Identifies a range of Tape source text.
Parameters:
SourceName(String): The optional file name or caller-supplied source label.Offset(Int32): The zero-based UTF-16 offset.Length(Int32): The length in UTF-16 code units.Line(Int32): The one-based lexical line counter; as in upstream, newlines consumed inside literals do not increment it.Column(Int32): The one-based UTF-8 byte column, matching Tape's lexical convention.
csharp
public TapeSourceSpan(string? SourceName, int Offset, int Length, int Line, int Column)Properties
Column
The one-based UTF-8 byte column, matching Tape's lexical convention.
Returns: Int32
csharp
public int Column { get; init; }Length
The length in UTF-16 code units.
Returns: Int32
csharp
public int Length { get; init; }Line
The one-based lexical line counter; as in upstream, newlines consumed inside literals do not increment it.
Returns: Int32
csharp
public int Line { get; init; }Offset
The zero-based UTF-16 offset.
Returns: Int32
csharp
public int Offset { get; init; }SourceName
The optional file name or caller-supplied source label.
Returns: String
csharp
public string? SourceName { get; init; }