Resolve a reference to a signature.
(&self, sig: SigRef, loc: Location)
| 363 | |
| 364 | // Resolve a reference to a signature. |
| 365 | fn check_sig(&self, sig: SigRef, loc: Location) -> ParseResult<()> { |
| 366 | if !self.map.contains_sig(sig) { |
| 367 | err!(loc, "undefined signature {}", sig) |
| 368 | } else { |
| 369 | Ok(()) |
| 370 | } |
| 371 | } |
| 372 | |
| 373 | // Allocate a new external function. |
| 374 | fn add_fn(&mut self, fn_: FuncRef, data: ExtFuncData, loc: Location) -> ParseResult<()> { |
no test coverage detected