Constructor
.ctor
init(DisplayText: string, InsertionText: string, BodyRelativeReplacementSpan: TextSpan, CursorOffset: Nullable<int> = default, Description: string? = null, Symbol: ISymbol? = null) -> ()
Declaring type: MacroCompletionItem
Namespace: Raven.CodeAnalysis.Macros
Assembly: Raven.CodeAnalysis.dll
Source file: MacroCompletionItem.cs
Describes a completion item contributed by a token-tree macro.
Parameters
| Name | Type | Description |
|---|---|---|
DisplayText |
String | The text shown in the completion list. |
InsertionText |
String | The text inserted into the authored macro body. |
BodyRelativeReplacementSpan |
TextSpan | The body-relative span replaced by the insertion. |
CursorOffset |
Nullable<Int32> | The optional cursor offset within InsertionText. |
Description |
String? | Optional completion documentation. |
Symbol |
ISymbol? | An optional ordinary Raven symbol represented by the item. |