Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/aiscriptdev/aiscript
/ write_code
Method
write_code
aiscript-vm/src/chunk.rs:193–195 ·
view source on GitHub ↗
(&mut self, code: OpCode, line: u32)
Source
from the content-addressed store, hash-verified
191
}
192
193
pub fn write_code(&mut self, code: OpCode, line: u32) {
194
self.write_byte(code, line);
195
}
196
197
pub fn write_byte(&mut self, byte: OpCode, line: u32) {
198
self.code.push(byte);
Callers
9
test_pop_combiner
Function · 0.80
test_pop_combiner_with_jumps
Function · 0.80
test_pop_combiner_simple
Function · 0.80
test_pop_combiner_with_other_ops
Function · 0.80
test_pop_combiner_with_upvalue_closure
Function · 0.80
test_pop_combiner_with_loop_locals
Function · 0.80
test_pop_combiner_with_infinite_loop
Function · 0.80
test_if_nil
Function · 0.80
test_preserve_error_handler
Function · 0.80
Calls
1
write_byte
Method · 0.80
Tested by
9
test_pop_combiner
Function · 0.64
test_pop_combiner_with_jumps
Function · 0.64
test_pop_combiner_simple
Function · 0.64
test_pop_combiner_with_other_ops
Function · 0.64
test_pop_combiner_with_upvalue_closure
Function · 0.64
test_pop_combiner_with_loop_locals
Function · 0.64
test_pop_combiner_with_infinite_loop
Function · 0.64
test_if_nil
Function · 0.64
test_preserve_error_handler
Function · 0.64