Class DiagnoseDocumentPayload
The System.Text.Json payload carried in Json.
public record DiagnoseDocumentPayload : IEquatable<DiagnoseDocumentPayload>
- Inheritance
-
DiagnoseDocumentPayload
- Implements
- Inherited Members
Remarks
Deliberately a record the language server grows: a SemanticContext field (resolver output —
bound types, semantic flags) joins it once the resolver exists, so semantic and runtime analyzers
receive the same envelope. SourceVersion is the workspace document version the parse
was taken at; a provider echoes it back so the language server can drop a report that raced a
later edit.
Constructors
DiagnoseDocumentPayload(Uri, int, ModuleParseResult)
The System.Text.Json payload carried in Json.
public DiagnoseDocumentPayload(Uri DocumentUri, int SourceVersion, ModuleParseResult ParseResult)
Parameters
DocumentUriUriThe document being diagnosed.
SourceVersionintThe workspace document version
ParseResultwas produced from.ParseResultModuleParseResultThe parsed module — AST plus syntax errors.
Remarks
Deliberately a record the language server grows: a SemanticContext field (resolver output —
bound types, semantic flags) joins it once the resolver exists, so semantic and runtime analyzers
receive the same envelope. SourceVersion is the workspace document version the parse
was taken at; a provider echoes it back so the language server can drop a report that raced a
later edit.
Properties
DocumentUri
The document being diagnosed.
public Uri DocumentUri { get; init; }
Property Value
ParseResult
The parsed module — AST plus syntax errors.
public ModuleParseResult ParseResult { get; init; }
Property Value
SourceVersion
The workspace document version ParseResult was produced from.
public int SourceVersion { get; init; }