mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +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
|
@ -2457,9 +2457,12 @@ fn to_pending_value_def<'a>(
|
|||
}
|
||||
}
|
||||
|
||||
Expect(condition) => PendingValue::Expect(PendingExpect {
|
||||
Expect {
|
||||
condition,
|
||||
preceding_comment: Region::zero(),
|
||||
preceding_comment,
|
||||
} => PendingValue::Expect(PendingExpect {
|
||||
condition,
|
||||
preceding_comment: *preceding_comment,
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue