Push a node onto the graph, updating stats and last_node cursor.
(&mut self, node: GraphNode)
| 289 | |
| 290 | /// Push a node onto the graph, updating stats and last_node cursor. |
| 291 | pub(crate) fn push_node(&mut self, node: GraphNode) { |
| 292 | self.stats.increment(node.kind); |
| 293 | self.last_node = Some(node.id.clone()); |
| 294 | self.nodes.push(node); |
| 295 | } |
| 296 | } |
no test coverage detected