mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-22 11:32:27 +00:00
Merge remote-tracking branch 'origin/trunk' into pretty-expect-output
This commit is contained in:
commit
b9ebd4fa27
76 changed files with 2719 additions and 817 deletions
|
@ -472,6 +472,15 @@ pub enum Recursive {
|
|||
TailRecursive = 2,
|
||||
}
|
||||
|
||||
impl Recursive {
|
||||
pub fn is_recursive(&self) -> bool {
|
||||
match self {
|
||||
Recursive::NotRecursive => false,
|
||||
Recursive::Recursive | Recursive::TailRecursive => true,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct WhenBranch {
|
||||
pub patterns: Vec<Loc<Pattern>>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue