Resolves a function [`Callee`] from an index.
(&mut self, idx: FuncIndex)
| 184 | |
| 185 | /// Resolves a function [`Callee`] from an index. |
| 186 | pub(crate) fn callee_from_index(&mut self, idx: FuncIndex) -> Callee { |
| 187 | let import = self.translation.module.is_imported_function(idx); |
| 188 | if import { |
| 189 | Callee::Import(idx) |
| 190 | } else { |
| 191 | Callee::Local(idx) |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | /// Converts a [wasmparser::BlockType] into a [BlockSig]. |
| 196 | pub(crate) fn resolve_block_sig(&self, ty: BlockType) -> Result<BlockSig> { |
no test coverage detected