Generate the bindings. This generates the imports (interfaces, types, functions), the factory and instance type, and the exports (functions).
(&mut self)
| 54 | /// This generates the imports (interfaces, types, functions), the factory and instance |
| 55 | /// type, and the exports (functions). |
| 56 | pub fn generate(&mut self) { |
| 57 | let (imports, chains) = self.generate_imports(); |
| 58 | self.generate_factory(&imports, chains); |
| 59 | self.generate_exports(&imports.instance_name); |
| 60 | } |
| 61 | |
| 62 | /// Generates the imports for the bindings. |
| 63 | fn generate_imports(&mut self) -> (AnalyzedImports, BTreeMap<String, Tokens<Go>>) { |
no test coverage detected