Table of Contents

Class LspParser

Namespace
Alternet.Syntax.Parsers.Lsp
Assembly
Alternet.Syntax.Parsers.Lsp.v9.dll

Represents base class for LSP parsers. This class is abstract.

public abstract class LspParser : SyntaxParser, IComponent, IDisposable, ISyntaxParser, IParser, ILexer, INotify, IUpdate, IImport, ILspDocumentProvider
Inheritance
LspParser
Implements
Derived

Constructors

LspParser()
LspParser(IContainer?)

Properties

Document

Gets a LspDocument associated with this parser.

FileName

Gets or sets file name of the file being parsed.

LanguageExtension
OnPublishDiagnosticsFilterRequired
Repository

Gets a LspRepository that holds methods for code completion purposes.

Scheme

Gets or sets a list of rules for lexical analysis.

Strings

Gets or sets a list of strings to parse.

ThemeName
Workspace
WorkspaceScope

Methods

AfterLoad()
CodeCompletion(string, StringItemInfo[], Point, CodeCompletionArgs)

Performs code completion for the specified text representing language element.

CreateRepository()

Creates ICodeCompletionRepository to perform code completion functionality for this parser.

CreateTokenizer()
CreateWorkspace()
DiagnosticToSyntaxError(Diagnostic)
Dispose(bool)

Releases the unmanaged resources used by the Component and optionally releases the managed resources.

DoCodeCompletionAsync(Point, CodeCompletionArgs, CancellationToken, bool)

Performs code completion for the specified text representing language element.

FindDeclarationAsync(Point, CancellationToken)

Finds the declaration location at given position.

FindReferencesAsync(Point, IRangeList, bool, CancellationToken)

Locates declaration at given position and finds all references to this declaration in the text.

GetCompletionType(char)

Obtains type of code completion window from specifies char parameter.

GetDocumentText()
GetLocationSourceText(Location)
GetSyntaxErrors(IList<ISyntaxError>, ISyntaxNode)
InitLexer()
LspFoldingRangeToOutlineRange(FoldingRange)
OnDocumentFileNameChanged()
OnThemeNameChanged()
OnWorkspaceChanged(LspWorkspace?, LspWorkspace)
Outline()

Creates outlined sections for parsed text using result of syntax analysis.

ParseText(int, int, string, ref StringItemInfo[])

Performs lexical analysis of given text.

Prepare(string, IStringList, ISyntaxTree, bool, PrepareReason)

Sets lines to parse.

ResetOptions()

Resets Options to the default value.

ResetParseInterval()

Resets ParseInterval to the default value.

ShouldSerializeParseInterval()

Indicates whether the ParseInterval property should be persisted.

StopParsing()

Aborts parsing process.

SupportsAsyncParsing()

Indicates whether parser supports async parsing.

UpdateDocument()