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

Method reportCategoryProperties

xs/tools/unicode/properties.js:32–42  ·  view source on GitHub ↗
(category)

Source from the content-addressed store, hash-verified

30 }
31 }
32 reportCategoryProperties(category) {
33 let aliases = category.aliases;
34 aliases.sort((a, b) => a.name.localeCompare(b.name));
35 this.report(`#define mxCharSet_${category.name} ${aliases.length}`)
36 this.report(`static const txCharSetUnicodeProperty ICACHE_RODATA_ATTR gxCharSet_${category.name}[mxCharSet_${category.name}] = {`);
37 for (let alias of aliases) {
38 const property = alias.property;
39 this.report(`\t{ "${alias.name}", mxCharSet_${category.name}_${property.name}, gxCharSet_${category.name}_${property.name} },`);
40 }
41 this.report("};");
42 }
43 run() {
44 let once = true;
45 let tool = this;

Callers 1

runMethod · 0.80

Calls 1

reportMethod · 0.80

Tested by

no test coverage detected