Refactored mutability
This commit is contained in:
@@ -37,7 +37,6 @@ pub enum Pattern {
|
||||
Tuple(Vec<Identifier>),
|
||||
Literal(Literal),
|
||||
Path(bool, Path),
|
||||
Id(Identifier),
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize)]
|
||||
|
||||
@@ -31,7 +31,6 @@ pub enum Statement {
|
||||
body: StatementBody,
|
||||
},
|
||||
For {
|
||||
mutable: bool,
|
||||
pattern: Pattern,
|
||||
iterator: Expression,
|
||||
body: StatementBody,
|
||||
@@ -46,7 +45,6 @@ pub enum Statement {
|
||||
|
||||
#[derive(Debug, Clone, Serialize)]
|
||||
pub struct VarDecl {
|
||||
pub mutable: bool,
|
||||
pub name: Pattern,
|
||||
pub type_: Option<TypeExpr>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user