mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
Drop smallvec
This commit is contained in:
parent
6294e77159
commit
1556cf1fc9
7 changed files with 16 additions and 30 deletions
|
@ -1,5 +1,3 @@
|
|||
use smallvec::SmallVec;
|
||||
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub enum Expr {
|
||||
// Literals
|
||||
|
@ -17,7 +15,7 @@ pub enum Expr {
|
|||
CallByName(Ident, Vec<Expr>),
|
||||
Apply(Box<Expr>, Vec<Expr>),
|
||||
Operator(Box<Expr>, Operator, Box<Expr>),
|
||||
Closure(SmallVec<[Pattern; 2]>, Box<Expr>),
|
||||
Closure(Vec<Pattern>, Box<Expr>),
|
||||
|
||||
// Sum Types
|
||||
ApplyVariant(String, Option<Vec<Expr>>),
|
||||
|
@ -27,7 +25,7 @@ pub enum Expr {
|
|||
|
||||
// Conditionals
|
||||
If(Box<Expr>, Box<Expr>, Box<Expr>),
|
||||
Case(Box<Expr>, SmallVec<[(Pattern, Box<Expr>); 2]>),
|
||||
Case(Box<Expr>, Vec<(Pattern, Box<Expr>)>),
|
||||
}
|
||||
|
||||
pub type Ident = String;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue