mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
spaces_middle
-> lines_between
This commit is contained in:
parent
2529fa0721
commit
ddb58a2cd5
36 changed files with 57 additions and 57 deletions
|
@ -801,7 +801,7 @@ pub enum ValueDef<'a> {
|
|||
AnnotatedBody {
|
||||
ann_pattern: &'a Loc<Pattern<'a>>,
|
||||
ann_type: &'a Loc<TypeAnnotation<'a>>,
|
||||
spaces_middle: &'a [CommentOrNewline<'a>],
|
||||
lines_between: &'a [CommentOrNewline<'a>],
|
||||
body_pattern: &'a Loc<Pattern<'a>>,
|
||||
body_expr: &'a Loc<Expr<'a>>,
|
||||
},
|
||||
|
@ -1044,7 +1044,7 @@ impl<'a, 'b> Iterator for RecursiveValueDefIter<'a, 'b> {
|
|||
ValueDef::AnnotatedBody {
|
||||
ann_pattern: _,
|
||||
ann_type: _,
|
||||
spaces_middle: _,
|
||||
lines_between: _,
|
||||
body_pattern: _,
|
||||
body_expr,
|
||||
} => self.push_pending_from_expr(&body_expr.value),
|
||||
|
@ -2726,7 +2726,7 @@ impl<'a> Malformed for ValueDef<'a> {
|
|||
ValueDef::AnnotatedBody {
|
||||
ann_pattern,
|
||||
ann_type,
|
||||
spaces_middle: _,
|
||||
lines_between: _,
|
||||
body_pattern,
|
||||
body_expr,
|
||||
} => {
|
||||
|
|
|
@ -3166,7 +3166,7 @@ fn stmts_to_defs<'a>(
|
|||
let value_def = ValueDef::AnnotatedBody {
|
||||
ann_pattern: arena.alloc(ann_pattern),
|
||||
ann_type: arena.alloc(ann_type),
|
||||
spaces_middle,
|
||||
lines_between: spaces_middle,
|
||||
body_pattern: loc_pattern,
|
||||
body_expr: loc_def_expr,
|
||||
};
|
||||
|
@ -3211,7 +3211,7 @@ pub fn join_alias_to_body<'a>(
|
|||
ValueDef::AnnotatedBody {
|
||||
ann_pattern: arena.alloc(loc_ann_pattern),
|
||||
ann_type: arena.alloc(ann_type),
|
||||
spaces_middle,
|
||||
lines_between: spaces_middle,
|
||||
body_pattern,
|
||||
body_expr,
|
||||
}
|
||||
|
|
|
@ -397,13 +397,13 @@ impl<'a> RemoveSpaces<'a> for ValueDef<'a> {
|
|||
AnnotatedBody {
|
||||
ann_pattern,
|
||||
ann_type,
|
||||
spaces_middle: _,
|
||||
lines_between: _,
|
||||
body_pattern,
|
||||
body_expr,
|
||||
} => AnnotatedBody {
|
||||
ann_pattern: arena.alloc(ann_pattern.remove_spaces(arena)),
|
||||
ann_type: arena.alloc(ann_type.remove_spaces(arena)),
|
||||
spaces_middle: &[],
|
||||
lines_between: &[],
|
||||
body_pattern: arena.alloc(body_pattern.remove_spaces(arena)),
|
||||
body_expr: arena.alloc(body_expr.remove_spaces(arena)),
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue