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

Method writeArgumentConversion

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

Source from the content-addressed store, hash-verified

86class NumberType extends Type {
87 get tsType() { return "number"; }
88 writeArgumentConversion(file, i) {
89 file.line(`${ this.name } arg${ i } = (${ this.name })XS->toNumber(the, mxArgv(${ i }));`);
90 }
91 writeResultConversion(file) {
92 file.line("XS->fromNumber(the, mxResult, (txNumber)result);");
93 }

Callers

nothing calls this directly

Calls 1

lineMethod · 0.45

Tested by

no test coverage detected