Class LspParser
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
Properties
- Document
Gets a
LspDocument
associated with this parser.
- FileName
Gets or sets file name of the file being parsed.
- 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.
Methods
- 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.
- 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.
- 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.