MCPcopy Index your code
hub / github.com/endbasic/endbasic / next_pc

Method next_pc

core/src/compiler/codegen.rs:76–78  ·  view source on GitHub ↗

Returns the address of the next instruction to be emitted.

(&self)

Source from the content-addressed store, hash-verified

74impl Codegen {
75 /// Returns the address of the next instruction to be emitted.
76 pub(super) fn next_pc(&self) -> Address {
77 self.code.len()
78 }
79
80 /// Appends a new instruction `op` generated at `pos` to the code and returns its address.
81 pub(super) fn emit(&mut self, op: u32, pos: LineCol) -> Address {

Callers 7

compile_selectFunction · 0.80
compile_doFunction · 0.80
compile_forFunction · 0.80
compile_ifFunction · 0.80
compile_whileFunction · 0.80
compile_stmtFunction · 0.80
compile_user_callableFunction · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected