More atlernatives work
This commit is contained in:
parent
482674b19a
commit
88b617de52
@ -189,9 +189,13 @@ fn reduce_if_expression(discriminator: &Discriminator, body: &IfExpressionBody,
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
IfExpressionBody::GuardList(ref guard_arms) => {
|
IfExpressionBody::GuardList(ref guard_arms) => {
|
||||||
for arm in guard_arms.iter() {
|
let alternatives = guard_arms.iter().map(|arm| {
|
||||||
//TODO do stuff here!!
|
Alternative {
|
||||||
}
|
tag: Some(0),
|
||||||
|
bound_vars: vec![],
|
||||||
|
item: arm.body.iter().map(|expr| expr.reduce(symbol_table)).collect(),
|
||||||
|
}
|
||||||
|
});
|
||||||
Expr::UnimplementedSigilValue
|
Expr::UnimplementedSigilValue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user