parse the region of the preceding comment for an expect

This commit is contained in:
Folkert 2022-07-19 00:12:15 +02:00 committed by Richard Feldman
parent 35733d51dc
commit 7597d11b59
No known key found for this signature in database
GPG key ID: 7E4127D1E4241798
8 changed files with 35 additions and 11 deletions

View file

@ -331,7 +331,10 @@ pub enum ValueDef<'a> {
body_expr: &'a Loc<Expr<'a>>,
},
Expect(&'a Loc<Expr<'a>>),
Expect {
condition: &'a Loc<Expr<'a>>,
preceding_comment: Region,
},
}
#[derive(Debug, Clone, PartialEq, Default)]