Refactoring not done yet, still need to do RSassert

This commit is contained in:
elvis
2025-08-24 02:01:24 +02:00
parent 8a492c7b8a
commit 3a4c4d43c2
18 changed files with 705 additions and 747 deletions

View File

@ -1,5 +1,5 @@
use super::dsl::*;
use super::super::{structure, translator, graph};
use super::super::{translator, graph, set, system, label};
use std::collections::HashMap;
// ----------------------------------------------------------------------------
@ -43,7 +43,7 @@ pub enum EdgeRelablerInput {
#[derive(Debug, Clone)]
enum EdgeRelablerInputValues {
Label(structure::RSlabel),
Label(label::Label),
Edge(petgraph::graph::EdgeIndex),
}
@ -157,7 +157,7 @@ pub enum NodeRelablerInput {
#[derive(Debug, Clone)]
enum NodeRelablerInputValues {
Entities(structure::RSset),
Entities(set::Set),
Node(petgraph::graph::NodeIndex),
}
@ -243,7 +243,7 @@ impl RSassert<NodeRelablerInput> {
node: &<graph::SystemGraph as petgraph::visit::GraphBase>::NodeId,
translator: &mut translator::Translator,
) -> Result<AssertReturnValue, String> {
let structure::RSsystem {available_entities: entities, ..} =
let system::System {available_entities: entities, ..} =
graph.node_weight(*node).ok_or("Missing node {{debug: {node:?}}}")?;
let mut input_vals = HashMap::new();