Table of Contents

Class DirectiveContext

Namespace
Dassie.Extensions
Assembly
dc.dll

Represents the metadata attached to the callsite of a compiler directive.

public record DirectiveContext : IEquatable<DirectiveContext>
Inheritance
DirectiveContext
Implements
Inherited Members
Extension Methods

Properties

Arguments

The arguments passed to the directive.

public object[] Arguments { get; }

Property Value

object[]

DocumentName

The name of the source document containing the compiler directive.

public string DocumentName { get; }

Property Value

string

LineNumber

The physical line number that contains the compiler directive.

public int LineNumber { get; }

Property Value

int

Rule

The parser rule representing the directive callsite.

public ParserRuleContext Rule { get; }

Property Value

ParserRuleContext