(result: GoResult, sizes: &'a SizeAlign)
| 50 | /// Create a new exported function. |
| 51 | #[allow(dead_code, reason = "halfway through refactor of func bindings")] |
| 52 | pub fn export(result: GoResult, sizes: &'a SizeAlign) -> Self { |
| 53 | Self { |
| 54 | direction: Direction::Export, |
| 55 | args: Vec::new(), |
| 56 | result, |
| 57 | tmp: 0, |
| 58 | body: Tokens::new(), |
| 59 | block_storage: Vec::new(), |
| 60 | blocks: Vec::new(), |
| 61 | sizes, |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | /// Create a new exported function. |
| 66 | pub fn import(param_name: &'a GoIdentifier, result: GoResult, sizes: &'a SizeAlign) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected