Field pat and value attributes, though not parsed yet
diff --git a/src/expr.rs b/src/expr.rs
index 69bef2c..fa9824e 100644
--- a/src/expr.rs
+++ b/src/expr.rs
@@ -150,6 +150,7 @@
pub ident: Ident,
pub expr: Expr,
pub is_shorthand: bool,
+ pub attrs: Vec<Attribute>,
}
/// A Block (`{ .. }`).
@@ -294,6 +295,7 @@
/// The pattern the field is destructured to
pub pat: Box<Pat>,
pub is_shorthand: bool,
+ pub attrs: Vec<Attribute>,
}
#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]
@@ -746,6 +748,7 @@
ident: name,
expr: value,
is_shorthand: false,
+ attrs: Vec::new(),
})
)
|
@@ -753,6 +756,7 @@
ident: name.clone(),
expr: ExprKind::Path(None, name.into()).into(),
is_shorthand: true,
+ attrs: Vec::new(),
})
));
@@ -1008,6 +1012,7 @@
ident: ident,
pat: Box::new(pat),
is_shorthand: false,
+ attrs: Vec::new(),
})
)
|
@@ -1033,6 +1038,7 @@
ident: ident,
pat: Box::new(pat),
is_shorthand: true,
+ attrs: Vec::new(),
}
})
)