mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Merge branch 'main' into fuzzing-bugs-6
This commit is contained in:
commit
0e2f16887a
31 changed files with 1472 additions and 654 deletions
|
@ -40,6 +40,16 @@ impl<'a, T: Copy> ExtractSpaces<'a> for Spaces<'a, T> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a, T> Spaces<'a, T> {
|
||||
pub fn item(item: T) -> Self {
|
||||
Self {
|
||||
before: &[],
|
||||
item,
|
||||
after: &[],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
|
||||
pub struct SpacesBefore<'a, T> {
|
||||
pub before: &'a [CommentOrNewline<'a>],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue