pub struct AsmBlock(pub Index);
Tuple Fields§
§0: Index
Implementations§
source§impl AsmBlock
impl AsmBlock
sourcepub fn new(
context: &mut Context,
args_names: Vec<Ident>,
body: Vec<AsmInstruction>,
return_type: Type,
return_name: Option<Ident>
) -> Self
pub fn new(
context: &mut Context,
args_names: Vec<Ident>,
body: Vec<AsmInstruction>,
return_type: Type,
return_name: Option<Ident>
) -> Self
Create a new AsmBlock
in the passed context and return its handle.
sourcepub fn get_content<'a>(&self, context: &'a Context) -> &'a AsmBlockContent
pub fn get_content<'a>(&self, context: &'a Context) -> &'a AsmBlockContent
Get a reference to the [AsmBlockContent
] for this ASM block.