MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / generateMCConfigJSFile

Method generateMCConfigJSFile

tools/ffi.js:478–487  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

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);

Callers 1

addMCConfigJSFileMethod · 0.95

Calls 2

tabMethod · 0.80
lineMethod · 0.45

Tested by

no test coverage detected