17 lines
291 B
Rust
17 lines
291 B
Rust
use crate::asm::asm_block::AsmBlock;
|
|
|
|
#[derive(Debug)]
|
|
pub struct AsmFunction {
|
|
name: String,
|
|
blocks: Vec<AsmBlock>,
|
|
}
|
|
|
|
impl AsmFunction {
|
|
pub fn new(name: &str, blocks: Vec<AsmBlock>) -> Self {
|
|
Self {
|
|
name: name.into(),
|
|
blocks,
|
|
}
|
|
}
|
|
}
|