Go to the top of the next block in layout order and return it. - If the cursor wasn't pointing at anything, go to the top of the first block in the function. - If there are no more blocks, leave the cursor pointing at nothing and return `None`. # Examples The `next_block()` method is intended for iterating over the blocks in layout order: ``` # use cranelift_codegen::ir::{Function, Block}; # u
(&mut self)
| 348 | /// } |
| 349 | /// ``` |
| 350 | fn next_block(&mut self) -> Option<ir::Block> { |
| 351 | let pos = self.next_block_position(); |
| 352 | self.set_position(pos); |
| 353 | self.current_block() |
| 354 | } |
| 355 | |
| 356 | /// Get the position that a `cursor.prev_block()` call would move this |
| 357 | /// cursor to, but do not update this cursor's position. |
no test coverage detected