style(xatu): order AST declarations
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
use crate::FileId;
|
use crate::FileId;
|
||||||
|
|
||||||
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
|
pub enum NodeData {
|
||||||
|
Apply(Apply),
|
||||||
|
Inherit(Inherit),
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
pub struct Apply {
|
pub struct Apply {
|
||||||
pub function: Expr,
|
pub function: Expr,
|
||||||
@@ -27,12 +33,6 @@ pub struct Inherit {
|
|||||||
pub attr_count: usize,
|
pub attr_count: usize,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
|
||||||
pub enum NodeData {
|
|
||||||
Apply(Apply),
|
|
||||||
Inherit(Inherit),
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||||
pub struct SourceRange {
|
pub struct SourceRange {
|
||||||
pub start: usize,
|
pub start: usize,
|
||||||
|
|||||||
Reference in New Issue
Block a user