brink-db 0.0.5

Incremental project database for inkle's ink narrative scripting language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use brink_ir::{Diagnostic, Knot, SymbolManifest};
use rowan::{GreenNode, TextSize};

/// Cached lowering result for a single knot.
pub(crate) struct KnotEntry {
    /// Green node of the AST `KnotDef` — used for identity comparison on re-parse.
    pub green: GreenNode,
    /// Byte offset of the knot in the file — cache is invalidated if this changes
    /// (e.g. when text is inserted before the knot, shifting its position).
    pub offset: TextSize,
    /// Lowered HIR knot (`None` if malformed).
    pub knot: Option<Knot>,
    /// Per-knot symbol manifest fragment.
    pub manifest: SymbolManifest,
    /// Lowering diagnostics from this knot.
    pub diagnostics: Vec<Diagnostic>,
}