Skip to main content
Version: Next

Class CompletionProvider

Assembly: RCaron.AutoCompletion.dll
View Source
Declaration
csharp
public class CompletionProvider
Declaration
csharp
public class CompletionProvider

Properties

Extensions

View Source
Declaration
csharp
public List<ICompletionExtension>? Extensions { get; set; }
Declaration
csharp
public List<ICompletionExtension>? Extensions { get; set; }

GlobalVariables

View Source
Declaration
csharp
public List<CompletionThing> GlobalVariables { get; }
Declaration
csharp
public List<CompletionThing> GlobalVariables { get; }

Fields

BuiltInFunctions

View Source
Declaration
csharp
public static readonly CompletionThing[] BuiltInFunctions
Declaration
csharp
public static readonly CompletionThing[] BuiltInFunctions

Keywords

View Source
Declaration
csharp
public static readonly CompletionThing[] Keywords
Declaration
csharp
public static readonly CompletionThing[] Keywords

Constants

View Source
Declaration
csharp
public static readonly CompletionThing[] Constants
Declaration
csharp
public static readonly CompletionThing[] Constants

Methods

GetCompletions(string, int, int, LocalScope?, IList<IRCaronModule>?, CancellationToken)

View Source
Declaration
csharp
public List<Completion> GetCompletions(string code, int caretPosition, int maxCompletions = 40, LocalScope? localScope = null, IList<IRCaronModule>? modules = null, CancellationToken cancellationToken = default)
Declaration
csharp
public List<Completion> GetCompletions(string code, int caretPosition, int maxCompletions = 40, LocalScope? localScope = null, IList<IRCaronModule>? modules = null, CancellationToken cancellationToken = default)
Returns

System.Collections.Generic.List<RCaron.AutoCompletion.Completion>

Parameters
TypeName
System.Stringcode
System.Int32caretPosition
System.Int32maxCompletions
RCaron.LocalScopelocalScope
System.Collections.Generic.IList<RCaron.IRCaronModule>modules
System.Threading.CancellationTokencancellationToken

ClearCache()

View Source
Declaration
csharp
public void ClearCache()
Declaration
csharp
public void ClearCache()

Extension Methods