Add conditional target placeholder expr
This commit is contained in:
parent
f883512882
commit
d7f0147a4f
@ -194,7 +194,8 @@ impl<'a> State<'a> {
|
||||
Assign { box val, box expr } => self.assign_expression(val, expr),
|
||||
Unit => Ok(Node::Expr(Unit)),
|
||||
CaseMatch { box cond, alternatives } => self.case_match_expression(cond, alternatives),
|
||||
UnimplementedSigilValue => Err(format!("Sigil value eval not implemented"))
|
||||
ConditionalTargetPlaceholder => Err(format!("This value shouldn't exist here")),
|
||||
UnimplementedSigilValue => Err(format!("Sigil value eval not implemented")),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -48,6 +48,7 @@ pub enum Expr {
|
||||
then_clause: Vec<Stmt>,
|
||||
else_clause: Vec<Stmt>,
|
||||
},
|
||||
ConditionalTargetPlaceholder,
|
||||
CaseMatch {
|
||||
cond: Box<Expr>,
|
||||
alternatives: Vec<Alternative>
|
||||
|
Loading…
Reference in New Issue
Block a user