(&mut self, node: Node<'_>)
| 20 | |
| 21 | impl Context<'_> { |
| 22 | fn charge(&mut self, node: Node<'_>) -> Result<(), &'static str> { |
| 23 | self.remaining = self |
| 24 | .remaining |
| 25 | .checked_sub(node.end_byte() - node.start_byte()) |
| 26 | .ok_or("Substantive audit work budget exceeded; inspection is incomplete")?; |
| 27 | Ok(()) |
| 28 | } |
| 29 | |
| 30 | fn normalized(&mut self, node: Node<'_>) -> Result<Vec<tokens::Token>, &'static str> { |
| 31 | self.charge(node)?; |
no outgoing calls
no test coverage detected