refactor(xatu): reuse binding model for let order

This commit is contained in:
2026-09-19 23:45:46 -04:00
parent a42a9c7064
commit 6585615628
4 changed files with 16 additions and 35 deletions

View File

@@ -36,20 +36,15 @@ pub enum NodeData {
pub struct Binding {
pub key: Ident,
pub value: Expr,
pub references: Vec<Ident>,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct LetBlock {
pub bindings: Vec<LetBinding>,
pub bindings: Vec<Binding>,
pub body_references: Vec<Ident>,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct LetBinding {
pub name: Ident,
pub references: Vec<Ident>,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Ident {
pub name: String,