MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / if_stmt

Method if_stmt

compiler/src/modules/parser/control.rs:14–19  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

12 /* if/elif/else compiler; emits JumpIfFalse/Jump and patches branch join targets */
13
14 pub(super) fn if_stmt(&mut self) {
15 self.advance();
16 self.enter_block();
17 self.if_body();
18 self.commit_block();
19 }
20
21 pub(super) fn if_body(&mut self) {
22 self.expr();

Callers 1

stmtMethod · 0.80

Calls 4

advanceMethod · 0.80
enter_blockMethod · 0.80
if_bodyMethod · 0.80
commit_blockMethod · 0.80

Tested by

no test coverage detected