mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-24 20:42:29 +00:00
parse the region of the preceding comment for an expect
This commit is contained in:
parent
35733d51dc
commit
7597d11b59
8 changed files with 35 additions and 11 deletions
|
@ -540,7 +540,13 @@ impl<'a> RemoveSpaces<'a> for ValueDef<'a> {
|
|||
body_pattern: arena.alloc(body_pattern.remove_spaces(arena)),
|
||||
body_expr: arena.alloc(body_expr.remove_spaces(arena)),
|
||||
},
|
||||
Expect(a) => Expect(arena.alloc(a.remove_spaces(arena))),
|
||||
Expect {
|
||||
condition,
|
||||
preceding_comment,
|
||||
} => Expect {
|
||||
condition: arena.alloc(condition.remove_spaces(arena)),
|
||||
preceding_comment,
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue