use crate::semantic::metadata::{LifetimeId, TypeId, ValueTypeMetadata};
pub type FunctionId = u32;
#[derive(Debug, Clone)]
pub struct FunctionLayoutMetadata {
pub self_argument: Option<FunctionLayoutSelfArgumentMetadata>,
pub other_arguments: Vec<FunctionLayoutArgumentMetadata>,
pub return_value_type: ValueTypeMetadata,
}
#[derive(Debug, Clone)]
pub struct FunctionLayoutSelfArgumentMetadata {
pub borrow: Option<Option<LifetimeId>>,
pub mutable: bool,
pub value_type: TypeId,
}
#[derive(Debug, Clone)]
pub struct FunctionLayoutArgumentMetadata {
pub ident: String,
pub value_type: ValueTypeMetadata,
}