mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
spaces_middle
-> lines_between
This commit is contained in:
parent
2529fa0721
commit
ddb58a2cd5
36 changed files with 57 additions and 57 deletions
|
@ -2969,7 +2969,7 @@ fn to_pending_value_def<'a>(
|
|||
AnnotatedBody {
|
||||
ann_pattern,
|
||||
ann_type,
|
||||
spaces_middle: _,
|
||||
lines_between: _,
|
||||
body_pattern,
|
||||
body_expr,
|
||||
} => {
|
||||
|
|
|
@ -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))),
|
||||
},
|
||||
|
|
|
@ -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 },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue