diff --git a/src/xatu/ast.rs b/src/xatu/ast.rs index d64e63c..1bed799 100644 --- a/src/xatu/ast.rs +++ b/src/xatu/ast.rs @@ -1,5 +1,11 @@ use crate::FileId; +#[derive(Debug, Clone, PartialEq, Eq)] +pub enum NodeData { + Apply(Apply), + Inherit(Inherit), +} + #[derive(Debug, Clone, PartialEq, Eq)] pub struct Apply { pub function: Expr, @@ -27,12 +33,6 @@ pub struct Inherit { pub attr_count: usize, } -#[derive(Debug, Clone, PartialEq, Eq)] -pub enum NodeData { - Apply(Apply), - Inherit(Inherit), -} - #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub struct SourceRange { pub start: usize,