forked from M-Labs/nac3
core: more derive Debug in typedef
This commit is contained in:
parent
74096eb9f6
commit
144a3fc426
|
@ -82,14 +82,14 @@ pub struct Call {
|
||||||
pub loc: Option<Location>,
|
pub loc: Option<Location>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct FuncArg {
|
pub struct FuncArg {
|
||||||
pub name: StrRef,
|
pub name: StrRef,
|
||||||
pub ty: Type,
|
pub ty: Type,
|
||||||
pub default_value: Option<SymbolValue>,
|
pub default_value: Option<SymbolValue>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct FunSignature {
|
pub struct FunSignature {
|
||||||
pub args: Vec<FuncArg>,
|
pub args: Vec<FuncArg>,
|
||||||
pub ret: Type,
|
pub ret: Type,
|
||||||
|
@ -166,7 +166,7 @@ impl RecordField {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Category of variable and value types.
|
/// Category of variable and value types.
|
||||||
#[derive(Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub enum TypeEnum {
|
pub enum TypeEnum {
|
||||||
TRigidVar {
|
TRigidVar {
|
||||||
id: TypeVarId,
|
id: TypeVarId,
|
||||||
|
|
Loading…
Reference in New Issue