add final_comments to List's AST

This commit is contained in:
Sébastien Besnier 2020-12-28 18:13:54 +01:00
parent 04d0711251
commit 83aa5c1642
4 changed files with 29 additions and 11 deletions

View file

@ -93,7 +93,10 @@ pub enum Expr<'a> {
AccessorFunction(&'a str),
// Collection Literals
List(&'a [&'a Loc<Expr<'a>>]),
List {
items: &'a [&'a Loc<Expr<'a>>],
final_comments: &'a [CommentOrNewline<'a>],
},
Record {
update: Option<&'a Loc<Expr<'a>>>,