Push a node onto the graph, updating stats and last_node cursor.
(&mut self, node: GraphNode)
| 295 | |
| 296 | /// Push a node onto the graph, updating stats and last_node cursor. |
| 297 | pub(crate) fn push_node(&mut self, node: GraphNode) { |
| 298 | self.stats.increment(node.kind); |
| 299 | self.last_node = Some(node.id.clone()); |
| 300 | self.nodes.push(node); |
| 301 | } |
| 302 | } |
no test coverage detected