(&mut self, token: &NodeOwner, ir: &mut IR, ops: &mut Assembler)
| 741 | } |
| 742 | |
| 743 | pub fn codegen(&mut self, token: &NodeOwner, ir: &mut IR, ops: &mut Assembler) { |
| 744 | // TODO: emit all the constant values first? |
| 745 | //let mut nodes_graph = StableGraph::new(); |
| 746 | //std::mem::swap(&mut self.nodes, &mut nodes_graph); |
| 747 | //let mut nodes: Vec<_> = nodes_graph.node_weights().collect(); |
| 748 | //nodes.sort_by_key(|n| n.time ); |
| 749 | // lol this is wrong. we actually want to thread a State edge through |
| 750 | // nodes, and just visit the State edge uses in order. |
| 751 | let mut patterns = self.patterns.take().unwrap(); |
| 752 | patterns.codegen(token, self, ops); |
| 753 | //std::mem::swap(&mut self.nodes, &mut nodes_graph); |
| 754 | } |
| 755 | } |
| 756 | |
| 757 |
nothing calls this directly
no outgoing calls
no test coverage detected