add dedicated RecordUpdate tag to parse ast

This commit is contained in:
Folkert 2021-03-20 16:06:07 +01:00
parent 0e7106280c
commit 60265b5d2a
5 changed files with 97 additions and 0 deletions

View file

@ -98,6 +98,12 @@ pub enum Expr<'a> {
final_comments: &'a [CommentOrNewline<'a>],
},
RecordUpdate {
update: &'a Loc<Expr<'a>>,
fields: &'a [Loc<AssignedField<'a, Expr<'a>>>],
final_comments: &'a [CommentOrNewline<'a>],
},
Record {
update: Option<&'a Loc<Expr<'a>>>,
fields: &'a [Loc<AssignedField<'a, Expr<'a>>>],