Create a new exported function.
(param_name: &'a GoIdentifier, result: GoResult, sizes: &'a SizeAlign)
| 64 | |
| 65 | /// Create a new exported function. |
| 66 | pub fn import(param_name: &'a GoIdentifier, result: GoResult, sizes: &'a SizeAlign) -> Self { |
| 67 | Self { |
| 68 | direction: Direction::Import { param_name }, |
| 69 | args: Vec::new(), |
| 70 | result, |
| 71 | tmp: 0, |
| 72 | body: Tokens::new(), |
| 73 | block_storage: Vec::new(), |
| 74 | blocks: Vec::new(), |
| 75 | sizes, |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | fn tmp(&mut self) -> usize { |
| 80 | let ret = self.tmp; |
nothing calls this directly
no outgoing calls
no test coverage detected