Resolve a reference to a constant.
(&self, c: Constant, loc: Location)
| 417 | |
| 418 | // Resolve a reference to a constant. |
| 419 | fn check_constant(&self, c: Constant, loc: Location) -> ParseResult<()> { |
| 420 | if !self.map.contains_constant(c) { |
| 421 | err!(loc, "undefined constant {}", c) |
| 422 | } else { |
| 423 | Ok(()) |
| 424 | } |
| 425 | } |
| 426 | |
| 427 | // Allocate a new block. |
| 428 | fn add_block(&mut self, block: Block, loc: Location) -> ParseResult<Block> { |
no test coverage detected