mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
fix empty record with only comments in it
This commit is contained in:
parent
b1bf03e7a0
commit
2f3d74e8bd
3 changed files with 31 additions and 1 deletions
|
@ -300,6 +300,15 @@ impl<'a> CommentOrNewline<'a> {
|
|||
DocComment(_) => true,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_newline(&self) -> bool {
|
||||
use CommentOrNewline::*;
|
||||
match self {
|
||||
Newline => true,
|
||||
LineComment(_) => false,
|
||||
DocComment(_) => false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue