Class SemanticOccurrence
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
HoverContent
Gets the plain-text hover representation, or null when unavailable.
public string? HoverContent { get; }
Property Value
HoverItems
Gets the categorized hover items.
public IReadOnlyList<SemanticHoverItem> HoverItems { get; }
Property Value
IsClassification
Gets a value indicating whether the occurrence contributes a semantic token.
public bool IsClassification { get; }
Property Value
Kind
Gets the semantic classification kind.
public SemanticClassificationKind Kind { get; }
Property Value
Modifiers
Gets the semantic classification modifiers.
public SemanticClassificationModifiers Modifiers { get; }
Property Value
Role
Gets the occurrence role.
public SemanticOccurrenceRole Role { get; }
Property Value
Span
Gets the occurrence source span.
public TextSpan Span { get; }
Property Value
Symbol
Gets the resolved symbol identity, or null for a non-navigable occurrence.
public SemanticSymbolKey? Symbol { get; }