MCPcopy Create free account
hub / github.com/aspizu/goboscript / forever

Method forever

src/codegen/stmt.rs:61–75  ·  view source on GitHub ↗
(
        &mut self,
        s: S,
        d: D,
        this_id: NodeID,
        body: &[Stmt],
        _span: &Span,
    )

Source from the content-addressed store, hash-verified

59 }
60
61 pub fn forever(
62 &mut self,
63 s: S,
64 d: D,
65 this_id: NodeID,
66 body: &[Stmt],
67 _span: &Span,
68 ) -> io::Result<()> {
69 let body_id = self.id.new_id();
70 self.begin_inputs()?;
71 self.substack("SUBSTACK", (!body.is_empty()).then_some(body_id))?;
72 self.end_obj()?; // inputs
73 self.end_obj()?; // node
74 self.stmts(s, d, body, body_id, Some(this_id))
75 }
76
77 pub fn branch(
78 &mut self,

Callers 1

stmtMethod · 0.80

Calls 5

new_idMethod · 0.80
begin_inputsMethod · 0.80
substackMethod · 0.80
end_objMethod · 0.80
stmtsMethod · 0.80

Tested by

no test coverage detected