rite-ls 0.2.2

Language server for the Rite ceremony DSL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Per-document state: text content and analysis results.

use rite_model::Ceremony;
use rite_resolver::SpanMap;

/// Cached analysis result for an open document.
pub struct DocumentAnalysis {
    /// The full text of the document as last seen.
    pub text: String,
    /// Span map from the last successful parse, used for go-to-definition and hover.
    pub span_map: SpanMap,
    /// Resolved ceremony from the last successful analysis, used for hover content.
    /// `None` if the ceremony has parse or resolution errors.
    pub resolved: Option<Ceremony>,
}