Gets a FunctionEnv by id.
(self, id: FunId)
| 2050 | |
| 2051 | /// Gets a FunctionEnv by id. |
| 2052 | pub fn into_function(self, id: FunId) -> FunctionEnv<'env> { |
| 2053 | let data = self.data.function_data.get(&id).expect("FunId undefined"); |
| 2054 | FunctionEnv { |
| 2055 | module_env: self, |
| 2056 | data, |
| 2057 | } |
| 2058 | } |
| 2059 | |
| 2060 | /// Gets the number of functions in this module. |
| 2061 | pub fn get_function_count(&self) -> usize { |