Table of Contents

Struct CompletionEntry

Namespace
NMF.AnyText
Assembly
NMF.AnyText.Core.dll

Represents an entry for code completion.

public struct CompletionEntry
Inherited Members

Constructors

CompletionEntry(string, SymbolKind, ParsePosition, ParsePosition)

Creates a new completion entry

public CompletionEntry(string completion, SymbolKind kind, ParsePosition startPosition, ParsePosition position)

Parameters

completion string

the text of the completion

kind SymbolKind

the completion kind

startPosition ParsePosition

the start position

position ParsePosition

the position where the completion was requested

Properties

Completion

The text of the completion

public string Completion { readonly get; init; }

Property Value

string

Detail

A human-readable string with additional information about this item, like type or symbol information.

public string Detail { readonly get; init; }

Property Value

string

Documentation

A human-readable string that represents a doc-comment.

public string Documentation { readonly get; init; }

Property Value

string

FilterText

A string that should be used when filtering a set of completion items.When omitted the label is used as the filter text for this item.

public string FilterText { readonly get; init; }

Property Value

string

Kind

The symbol kind associated with the completion entry

public SymbolKind Kind { readonly get; init; }

Property Value

SymbolKind

Label

The label of the completion shown to the user

public string Label { readonly get; init; }

Property Value

string

Length

The length of the completion

public ParsePositionDelta Length { readonly get; init; }

Property Value

ParsePositionDelta

SortText

A string that should be used when comparing this item with other items.When omitted the label is used as the sort text for this item.

public string SortText { readonly get; init; }

Property Value

string

StartPosition

The start position of the completion

public ParsePosition StartPosition { readonly get; init; }

Property Value

ParsePosition