fluidattacks-blends-domain 0.34.0

Blends functional core: pure AST graph to syntax graph (no_std)
Documentation
//! The set of graphs produced for one source file.
//!
//! One field per graph layer, each independently present or absent. The
//! `syntax` field fills language by language as dispatchers land; `stack`
//! joins with the stack layer.

use crate::ast::AstGraph;
use crate::syntax::SyntaxGraph;

/// Every graph layer produced for one source file, each independently present or absent.
#[derive(Clone, PartialEq, Eq, Debug, Default)]
#[allow(
    clippy::exhaustive_structs,
    reason = "the shell builds it by literal, one field per graph layer"
)]
pub struct GraphSet {
    /// The parsed AST graph, once parsing has run.
    pub ast: Option<AstGraph>,
    /// The derived syntax graph, once a dispatcher has built it.
    pub syntax: Option<SyntaxGraph>,
    // pub stack: Option<StackGraph>,    // added with the stack layer
}