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

Method reportNames

xs/tools/unicode/strings.js:31–40  ·  view source on GitHub ↗
(names)

Source from the content-addressed store, hash-verified

29 this.report(`#define gxCharSet_${name} C_NULL`);
30 }
31 reportNames(names) {
32 let c = names.length;
33 this.report(`#define mxCharSet_String_Property ${c}`);
34 this.report(`static const txCharSetUnicodeStringProperty ICACHE_RODATA_ATTR gxCharSet_String_Property[mxCharSet_String_Property] = {`);
35 for (let i = 0; i < c; i++) {
36 let name = names[i];
37 this.report(`\t{ "${name}", mxCharSet_${name}, gxCharSet_${name}, mxStrings_${name}, gxStrings_${name} },`);
38 }
39 this.report("};");
40 }
41 reportStrings(name, strings) {
42 let c = strings.length;
43 this.report(`#define mxStrings_${name} ${c}`);

Callers 1

runMethod · 0.80

Calls 1

reportMethod · 0.80

Tested by

no test coverage detected