Table of Contents

Class SemanticOccurrence

Namespace
MuLang.Compiler
Assembly
MuLang.Compiler.dll

Represents a semantic occurrence over a source span.

public sealed class SemanticOccurrence
Inheritance
SemanticOccurrence
Inherited Members

Properties

DefinitionSpan

Gets the source definition span, or null when the symbol has no source definition.

public TextSpan? DefinitionSpan { get; }

Property Value

TextSpan?

HoverContent

Gets the plain-text hover representation, or null when unavailable.

public string? HoverContent { get; }

Property Value

string

HoverItems

Gets the categorized hover items.

public IReadOnlyList<SemanticHoverItem> HoverItems { get; }

Property Value

IReadOnlyList<SemanticHoverItem>

IsClassification

Gets a value indicating whether the occurrence contributes a semantic token.

public bool IsClassification { get; }

Property Value

bool

Kind

Gets the semantic classification kind.

public SemanticClassificationKind Kind { get; }

Property Value

SemanticClassificationKind

Modifiers

Gets the semantic classification modifiers.

public SemanticClassificationModifiers Modifiers { get; }

Property Value

SemanticClassificationModifiers

Role

Gets the occurrence role.

public SemanticOccurrenceRole Role { get; }

Property Value

SemanticOccurrenceRole

Span

Gets the occurrence source span.

public TextSpan Span { get; }

Property Value

TextSpan

Symbol

Gets the resolved symbol identity, or null for a non-navigable occurrence.

public SemanticSymbolKey? Symbol { get; }

Property Value

SemanticSymbolKey