TapeParseContext
Namespace: Hex1b.Automation
Assembly: Hex1b.dll
Provides token access, source information, and diagnostic reporting to a syntax extension.
csharp
public sealed class TapeParseContextInheritance
Object → TapeParseContext
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:
diagnostic(TapeDiagnostic): The diagnostic to append.
csharp
public void Report(TapeDiagnostic diagnostic)