Method
declare_function
(
&mut self,
name: &str,
linkage: Linkage,
signature: &ir::Signature,
)
Source from the content-addressed store, hash-verified
| 422 | } |
| 423 | |
| 424 | fn declare_function( |
| 425 | &mut self, |
| 426 | name: &str, |
| 427 | linkage: Linkage, |
| 428 | signature: &ir::Signature, |
| 429 | ) -> ModuleResult<FuncId> { |
| 430 | let (id, _linkage) = self |
| 431 | .declarations |
| 432 | .declare_function(name, linkage, signature)?; |
| 433 | Ok(id) |
| 434 | } |
| 435 | |
| 436 | fn declare_anonymous_function(&mut self, signature: &ir::Signature) -> ModuleResult<FuncId> { |
| 437 | let id = self.declarations.declare_anonymous_function(signature)?; |