cl-ast: Remove Param, replace with flat Pattern
This commit is contained in:
@@ -145,17 +145,10 @@ pub enum ModuleKind {
|
||||
pub struct Function {
|
||||
pub name: Sym,
|
||||
pub sign: TyFn,
|
||||
pub bind: Vec<Param>,
|
||||
pub bind: Vec<Pattern>,
|
||||
pub body: Option<Expr>,
|
||||
}
|
||||
|
||||
/// A single parameter for a [Function]
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
|
||||
pub struct Param {
|
||||
pub mutability: Mutability,
|
||||
pub bind: Pattern,
|
||||
}
|
||||
|
||||
/// A user-defined product type
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
|
||||
pub struct Struct {
|
||||
|
||||
Reference in New Issue
Block a user