Skip to content

TapeParseContext

Namespace: Hex1b.Automation

Assembly: Hex1b.dll

Provides token access, source information, and diagnostic reporting to a syntax extension.

csharp
public sealed class TapeParseContext

Inheritance

ObjectTapeParseContext

Properties

CommandSpan

Gets the extension keyword's source range.

Returns: TapeSourceSpan

csharp
public TapeSourceSpan CommandSpan { get; }

Reader

Gets the token reader positioned after the extension keyword.

Returns: TapeTokenReader

csharp
public TapeTokenReader Reader { get; }

SourceName

Gets the caller-supplied source label.

Returns: String

csharp
public string? SourceName { get; }

Methods

Report(TapeDiagnostic)

Reports a syntax diagnostic.

Parameters:

csharp
public void Report(TapeDiagnostic diagnostic)

Released under the MIT License.