Class ParseTokensParams
Request for rdcore/parser/tokens: the language server asks the parsing server what the tokens of a text are.
[Method("rdcore/parser/tokens", Direction.ClientToServer)]
public record ParseTokensParams : IRequest, IRequest<Unit>, IRequest<ParseTokensResult>, IBaseRequest, IEquatable<ParseTokensParams>
- Inheritance
-
ParseTokensParams
- Implements
-
IRequestIRequest<Unit>IRequest<ParseTokensResult>IBaseRequest
- Inherited Members
Remarks
The answer is lexical and nothing else (SyntaxTokenKind): the parsing server is stateless, and what a name means is the language server's to add. It is how the text of a listing is highlighted, which the syntax tree cannot say - it keeps neither the keywords nor the comments.
Properties
DocumentUri
The URI of the document, which identifies it and does not say where its text comes from.
public Uri? DocumentUri { get; init; }
Property Value
Text
The text to tokenize, as the caller holds it.
public string? Text { get; init; }