MCPcopy Index your code
hub / github.com/Moddable-OpenSource/moddable / writeArgumentConversion

Method writeArgumentConversion

tools/ffi.js:78–80  ·  view source on GitHub ↗
(file, i)

Source from the content-addressed store, hash-verified

76class IntegerType extends Type {
77 get tsType() { return "number"; }
78 writeArgumentConversion(file, i) {
79 file.line(`${ this.name } arg${ i } = (${ this.name })XS->toInteger(the, mxArgv(${ i }));`);
80 }
81 writeResultConversion(file) {
82 file.line("XS->fromInteger(the, mxResult, (txInteger)result);");
83 }

Callers

nothing calls this directly

Calls 1

lineMethod · 0.45

Tested by

no test coverage detected