mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-05-18 02:01:30 +00:00
add mutable init_expr code
This commit is contained in:
parent
aeae465b9e
commit
62e331c98c
@ -66,6 +66,11 @@ impl InitExpr {
|
||||
pub fn code(&self) -> &[Opcode] {
|
||||
&self.0
|
||||
}
|
||||
|
||||
/// List of opcodes used in the expression.
|
||||
pub fn code_mut(&mut self) -> &mut Vec<Opcode> {
|
||||
&mut self.0
|
||||
}
|
||||
}
|
||||
|
||||
// todo: check if kind of opcode sequence is valid as an expression
|
||||
|
Loading…
x
Reference in New Issue
Block a user