MCPcopy Create free account
hub / github.com/endbasic/endbasic / pop_eof

Method pop_eof

core/src/compiler/codegen.rs:106–111  ·  view source on GitHub ↗

Removes the EOF instruction from the program, if any.

(&mut self)

Source from the content-addressed store, hash-verified

104
105 /// Removes the EOF instruction from the program, if any.
106 pub(super) fn pop_eof(&mut self) {
107 if let Some(instr) = self.code.pop() {
108 debug_assert_eq!(bytecode::make_eof(), instr);
109 self.instrs.pop();
110 }
111 }
112
113 /// Emits code to set `reg` to the default value for `vtype`.
114 pub(super) fn emit_default(&mut self, reg: Register, vtype: ExprType, pos: LineCol) {

Callers 1

compileFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected