spaces_middle -> lines_between

This commit is contained in:
Aidan 2024-07-29 13:06:48 -04:00
parent 2529fa0721
commit ddb58a2cd5
36 changed files with 57 additions and 57 deletions

View file

@ -2969,7 +2969,7 @@ fn to_pending_value_def<'a>(
AnnotatedBody {
ann_pattern,
ann_type,
spaces_middle: _,
lines_between: _,
body_pattern,
body_expr,
} => {

View file

@ -86,13 +86,13 @@ fn desugar_value_def<'a>(
AnnotatedBody {
ann_pattern,
ann_type,
spaces_middle,
lines_between: spaces_middle,
body_pattern,
body_expr,
} => AnnotatedBody {
ann_pattern,
ann_type,
spaces_middle,
lines_between: spaces_middle,
body_pattern: desugar_loc_pattern(arena, body_pattern, src, line_info, module_path),
body_expr: desugar_expr(arena, body_expr, src, line_info, module_path),
},
@ -170,7 +170,7 @@ fn desugar_value_def<'a>(
ext: None,
},
)),
spaces_middle: &[],
lines_between: &[],
body_pattern: new_pat,
body_expr: desugar_expr(arena, stmt_expr, src, line_info, module_path),
}
@ -235,7 +235,7 @@ pub fn desugar_value_def_suffixed<'a>(arena: &'a Bump, value_def: ValueDef<'a>)
AnnotatedBody {
ann_pattern,
ann_type,
spaces_middle,
lines_between: spaces_middle,
body_pattern,
body_expr,
} => {
@ -244,7 +244,7 @@ pub fn desugar_value_def_suffixed<'a>(arena: &'a Bump, value_def: ValueDef<'a>)
Ok(new_expr) => AnnotatedBody {
ann_pattern,
ann_type,
spaces_middle,
lines_between: spaces_middle,
body_pattern,
body_expr: new_expr,
},
@ -257,7 +257,7 @@ pub fn desugar_value_def_suffixed<'a>(arena: &'a Bump, value_def: ValueDef<'a>)
AnnotatedBody {
ann_pattern,
ann_type,
spaces_middle,
lines_between: spaces_middle,
body_pattern,
body_expr: apply_task_await(
arena,
@ -272,7 +272,7 @@ pub fn desugar_value_def_suffixed<'a>(arena: &'a Bump, value_def: ValueDef<'a>)
Err(..) => AnnotatedBody {
ann_pattern,
ann_type,
spaces_middle,
lines_between: spaces_middle,
body_pattern,
body_expr: arena.alloc(Loc::at(body_expr.region, MalformedSuffixed(body_expr))),
},

View file

@ -900,7 +900,7 @@ pub fn apply_task_await<'a>(
]),
),
)),
spaces_middle: &[],
lines_between: &[],
body_pattern: arena.alloc(Loc::at(
loc_pat.region,
Pattern::Identifier { ident: new_ident },