Class SymbolHover
- Namespace
- RDCore.SDK.Semantics.Refactoring
- Assembly
- RDCore.SDK.dll
What a hover over a name says of its symbol (LSP 3.17 §Hover Request): its declaration as code would write it, what declares it, and what it does when its doc string says so.
public sealed record SymbolHover : IEquatable<SymbolHover>
- Inheritance
-
SymbolHover
- Implements
- Inherited Members
Constructors
SymbolHover(string, string?, string?)
What a hover over a name says of its symbol (LSP 3.17 §Hover Request): its declaration as code would write it, what declares it, and what it does when its doc string says so.
public SymbolHover(string Declaration, string? Container, string? Documentation)
Parameters
DeclarationstringThe declaration, on one line:
Public Function GetTotal() As Long,Dim count As Long,Enum Colour.ContainerstringWhat declares the symbol: its module, procedure,
EnumorType-Helpers,VBA.Strings; null for a module, which nothing declares.DocumentationstringWhat the symbol is or does, in a sentence: its doc string; null when it has none.
Properties
Container
What declares the symbol: its module, procedure, Enum or Type - Helpers, VBA.Strings; null
for a module, which nothing declares.
public string? Container { get; init; }
Property Value
Declaration
The declaration, on one line: Public Function GetTotal() As Long, Dim count As Long, Enum Colour.
public string Declaration { get; init; }
Property Value
Documentation
What the symbol is or does, in a sentence: its doc string; null when it has none.
public string? Documentation { get; init; }
Property Value
Methods
Of(Symbol)
What a hover says of a symbol.
public static SymbolHover Of(Symbol symbol)
Parameters
symbolSymbolThe symbol.
Returns
ToMarkdown(CultureInfo?)
The hover as Markdown: the declaration as a block of VBA, what declares it, and its doc string.
public string ToMarkdown(CultureInfo? culture = null)
Parameters
cultureCultureInfoThe language of the reader; the current UI culture by default.
Returns
ToPlainText(CultureInfo?)
The hover as plain text, for a client that does not read Markdown.
public string ToPlainText(CultureInfo? culture = null)
Parameters
cultureCultureInfoThe language of the reader; the current UI culture by default.