Method
forever
(
&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, |
Tested by
no test coverage detected