(file)
| 476 | file.line(`}`); |
| 477 | } |
| 478 | generateMCConfigJSFile(file) { |
| 479 | file.line(`/* FFI GENERATED FILE; DO NOT EDIT! */`); |
| 480 | file.line(); |
| 481 | file.line(`class FFI extends Native("FFI_destructor") {`); |
| 482 | file.tab(1); |
| 483 | file.line(`constructor() { super(); native("FFI_constructor").call(this); }`); |
| 484 | file.tab(-1); |
| 485 | file.line(`}`); |
| 486 | file.line(`export default FFI;`); |
| 487 | } |
| 488 | mcConfig(tool, description) { |
| 489 | const signatures = this.parseSignatures(description.functions); |
| 490 | this.addXSFile(tool); |
no test coverage detected