This commit is contained in:
nora 2023-05-23 16:33:10 +02:00
parent c84fdfaf3a
commit 542c0daf6a
6 changed files with 160 additions and 50 deletions

View file

@ -69,6 +69,8 @@ pub struct Func<'cx> {
pub name: Symbol,
pub def_span: Span,
pub ret_ty: Ty<'cx>,
/// The amount of function parameters. regs[..arity] are the parameters.
pub arity: u32,
}
#[derive(Clone, Copy)]