handle AnnotatedBody everywhere. It compiles now!

This commit is contained in:
Sébastien Besnier 2020-10-30 12:39:00 +01:00
parent d2d3681d7e
commit 014131dabe
6 changed files with 108 additions and 81 deletions

View file

@ -281,8 +281,8 @@ pub enum Def<'a> {
ann_pattern: Loc<Pattern<'a>>,
ann_type: Loc<TypeAnnotation<'a>>,
comment: Option<&'a str>,
body_pattern: Loc<Pattern<'a>>,
body_expr: Loc<Expr<'a>>,
body_pattern: &'a Loc<Pattern<'a>>,
body_expr: &'a Loc<Expr<'a>>,
},
// Blank Space (e.g. comments, spaces, newlines) before or after a def.