@markw65/monkeyc-optimizer 1.1.34 → 1.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +964 -0
- package/README.md +9 -1
- package/build/api.cjs +31 -31
- package/build/{chunk-QBCVUVLD.cjs → chunk-FD2NCZK4.cjs} +1112 -2695
- package/build/optimizer.cjs +17 -17
- package/build/sdk-util.cjs +14 -14
- package/build/src/api.d.ts +1 -1
- package/build/src/type-flow/types.d.ts +1 -1
- package/build/worker-thread.cjs +3 -3
- package/package.json +3 -2
- package/build/src/readprg/switch.d.ts +0 -5
- package/build/src/src/api.d.ts +0 -51
- package/build/src/src/ast.d.ts +0 -59
- package/build/src/src/build.d.ts +0 -7
- package/build/src/src/cftinfo.d.ts +0 -32
- package/build/src/src/control-flow.d.ts +0 -22
- package/build/src/src/data-flow.d.ts +0 -107
- package/build/src/src/driver.d.ts +0 -2
- package/build/src/src/function-info.d.ts +0 -14
- package/build/src/src/inliner.d.ts +0 -13
- package/build/src/src/jungles.d.ts +0 -66
- package/build/src/src/launch.d.ts +0 -5
- package/build/src/src/logger.d.ts +0 -6
- package/build/src/src/manifest.d.ts +0 -11
- package/build/src/src/mc-rewrite.d.ts +0 -13
- package/build/src/src/negative-fixups.d.ts +0 -1
- package/build/src/src/optimizer-types.d.ts +0 -249
- package/build/src/src/optimizer.d.ts +0 -100
- package/build/src/src/pragma-checker.d.ts +0 -3
- package/build/src/src/pre.d.ts +0 -2
- package/build/src/src/projects.d.ts +0 -26
- package/build/src/src/readprg/array-init.d.ts +0 -3
- package/build/src/src/readprg/bytecode.d.ts +0 -72
- package/build/src/src/readprg/cflow.d.ts +0 -17
- package/build/src/src/readprg/data.d.ts +0 -4
- package/build/src/src/readprg/dce.d.ts +0 -6
- package/build/src/src/readprg/emit.d.ts +0 -23
- package/build/src/src/readprg/exceptions.d.ts +0 -10
- package/build/src/src/readprg/header.d.ts +0 -15
- package/build/src/src/readprg/interp.d.ts +0 -21
- package/build/src/src/readprg/linenum.d.ts +0 -29
- package/build/src/src/readprg/locals.d.ts +0 -3
- package/build/src/src/readprg/opcodes.d.ts +0 -279
- package/build/src/src/readprg/optimize.d.ts +0 -3
- package/build/src/src/readprg/pre.d.ts +0 -2
- package/build/src/src/readprg/sharing.d.ts +0 -2
- package/build/src/src/readprg/signer.d.ts +0 -8
- package/build/src/src/readprg/symbols.d.ts +0 -19
- package/build/src/src/readprg.d.ts +0 -25
- package/build/src/src/resources.d.ts +0 -12
- package/build/src/src/sdk-util.d.ts +0 -28
- package/build/src/src/type-flow/could-be.d.ts +0 -5
- package/build/src/src/type-flow/dead-store.d.ts +0 -18
- package/build/src/src/type-flow/interp-binary.d.ts +0 -4
- package/build/src/src/type-flow/interp-call.d.ts +0 -16
- package/build/src/src/type-flow/interp.d.ts +0 -33
- package/build/src/src/type-flow/intersection-type.d.ts +0 -4
- package/build/src/src/type-flow/minimize-locals.d.ts +0 -4
- package/build/src/src/type-flow/minimize-modules.d.ts +0 -3
- package/build/src/src/type-flow/optimize.d.ts +0 -7
- package/build/src/src/type-flow/sub-type.d.ts +0 -2
- package/build/src/src/type-flow/type-flow-util.d.ts +0 -27
- package/build/src/src/type-flow/types.d.ts +0 -204
- package/build/src/src/type-flow/union-type.d.ts +0 -4
- package/build/src/src/type-flow.d.ts +0 -18
- package/build/src/src/unused-exprs.d.ts +0 -3
- package/build/src/src/util.d.ts +0 -33
- package/build/src/src/variable-renamer.d.ts +0 -4
- package/build/src/src/visitor.d.ts +0 -5
- package/build/src/src/worker-pool.d.ts +0 -4
- package/build/src/src/worker-task.d.ts +0 -88
- package/build/src/src/worker-thread.d.ts +0 -1
- package/build/src/src/xml-util.d.ts +0 -172
- package/build/src/test/mocha/bytecode.spec.d.ts +0 -1
- package/build/src/test/mocha/coudbe.spec.d.ts +0 -2
- package/build/src/test/mocha/intersection.spec.d.ts +0 -2
- package/build/src/test/mocha/root.spec.d.ts +0 -1
- package/build/src/test/mocha/subtype.spec.d.ts +0 -2
- package/build/src/test/mocha/test-utils.d.ts +0 -6
- package/build/src/test/mocha/types.spec.d.ts +0 -1
package/README.md
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
# monkeyc-optimizer README
|
|
2
2
|
|
|
3
|
-
This
|
|
3
|
+
This package provides a set of utilities for working with Garmin Monkey-C projects.
|
|
4
|
+
|
|
5
|
+
#### Optimization and analysis
|
|
6
|
+
|
|
7
|
+
Its primary purpose is to serve as the optimization and analysis engine behind [prettier-extension-monkeyc](https://marketplace.visualstudio.com/items?itemName=markw65.prettier-extension-monkeyc). Although it could be used separately to optimize and analyze Monkey-C projects, most of the API is not expected to be stable (ie it will change as required by `prettier-extension-monkeyc`).
|
|
8
|
+
|
|
9
|
+
#### Font analysis
|
|
10
|
+
|
|
11
|
+
It also provides a tool to report information about the builtin fonts on a device. This can be used to compute layouts, or make decisions about whether a given string would fit in a given screen region at build time, rather than at runtime. [More details](https://github.com/markw65/monkeyc-optimizer/wiki/Garmin-Font-Analyzer)
|
|
4
12
|
|
|
5
13
|
## Release Notes
|
|
6
14
|
|
package/build/api.cjs
CHANGED
|
@@ -18,44 +18,44 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var api_exports = {};
|
|
20
20
|
__export(api_exports, {
|
|
21
|
-
checkCompilerVersion: () =>
|
|
22
|
-
collectNamespaces: () =>
|
|
23
|
-
createDocumentationMap: () =>
|
|
24
|
-
diagnostic: () =>
|
|
25
|
-
diagnosticHelper: () =>
|
|
26
|
-
findNamesInScope: () =>
|
|
27
|
-
findUsingForNode: () =>
|
|
28
|
-
formatAst: () =>
|
|
29
|
-
formatAstLongLines: () =>
|
|
30
|
-
getApiFunctionInfo: () =>
|
|
31
|
-
getApiMapping: () =>
|
|
32
|
-
getSuperClasses: () =>
|
|
21
|
+
checkCompilerVersion: () => import_chunk_FD2NCZK4.checkCompilerVersion,
|
|
22
|
+
collectNamespaces: () => import_chunk_FD2NCZK4.collectNamespaces,
|
|
23
|
+
createDocumentationMap: () => import_chunk_FD2NCZK4.createDocumentationMap,
|
|
24
|
+
diagnostic: () => import_chunk_FD2NCZK4.diagnostic,
|
|
25
|
+
diagnosticHelper: () => import_chunk_FD2NCZK4.diagnosticHelper,
|
|
26
|
+
findNamesInScope: () => import_chunk_FD2NCZK4.findNamesInScope,
|
|
27
|
+
findUsingForNode: () => import_chunk_FD2NCZK4.findUsingForNode,
|
|
28
|
+
formatAst: () => import_chunk_FD2NCZK4.formatAst,
|
|
29
|
+
formatAstLongLines: () => import_chunk_FD2NCZK4.formatAstLongLines,
|
|
30
|
+
getApiFunctionInfo: () => import_chunk_FD2NCZK4.getApiFunctionInfo,
|
|
31
|
+
getApiMapping: () => import_chunk_FD2NCZK4.getApiMapping,
|
|
32
|
+
getSuperClasses: () => import_chunk_FD2NCZK4.getSuperClasses,
|
|
33
33
|
hasProperty: () => import_chunk_MBTLUWXR.hasProperty,
|
|
34
|
-
isClassVariable: () =>
|
|
35
|
-
isLocal: () =>
|
|
36
|
-
isLookupCandidate: () =>
|
|
37
|
-
isStateNode: () =>
|
|
38
|
-
lookupByFullName: () =>
|
|
39
|
-
lookupNext: () =>
|
|
40
|
-
lookupResultContains: () =>
|
|
41
|
-
lookupWithType: () =>
|
|
42
|
-
makeToyboxLink: () =>
|
|
43
|
-
mapVarDeclsByType: () =>
|
|
44
|
-
markInvokeClassMethod: () =>
|
|
45
|
-
parseSdkVersion: () =>
|
|
46
|
-
sameLookupResult: () =>
|
|
34
|
+
isClassVariable: () => import_chunk_FD2NCZK4.isClassVariable,
|
|
35
|
+
isLocal: () => import_chunk_FD2NCZK4.isLocal,
|
|
36
|
+
isLookupCandidate: () => import_chunk_FD2NCZK4.isLookupCandidate,
|
|
37
|
+
isStateNode: () => import_chunk_FD2NCZK4.isStateNode,
|
|
38
|
+
lookupByFullName: () => import_chunk_FD2NCZK4.lookupByFullName,
|
|
39
|
+
lookupNext: () => import_chunk_FD2NCZK4.lookupNext,
|
|
40
|
+
lookupResultContains: () => import_chunk_FD2NCZK4.lookupResultContains,
|
|
41
|
+
lookupWithType: () => import_chunk_FD2NCZK4.lookupWithType,
|
|
42
|
+
makeToyboxLink: () => import_chunk_FD2NCZK4.makeToyboxLink,
|
|
43
|
+
mapVarDeclsByType: () => import_chunk_FD2NCZK4.mapVarDeclsByType,
|
|
44
|
+
markInvokeClassMethod: () => import_chunk_FD2NCZK4.markInvokeClassMethod,
|
|
45
|
+
parseSdkVersion: () => import_chunk_FD2NCZK4.parseSdkVersion,
|
|
46
|
+
sameLookupResult: () => import_chunk_FD2NCZK4.sameLookupResult,
|
|
47
47
|
traverseAst: () => import_chunk_MBTLUWXR.traverseAst,
|
|
48
|
-
variableDeclarationName: () =>
|
|
49
|
-
visitReferences: () =>
|
|
50
|
-
visit_resources: () =>
|
|
51
|
-
visitorNode: () =>
|
|
48
|
+
variableDeclarationName: () => import_chunk_FD2NCZK4.variableDeclarationName,
|
|
49
|
+
visitReferences: () => import_chunk_FD2NCZK4.visitReferences,
|
|
50
|
+
visit_resources: () => import_chunk_FD2NCZK4.visit_resources,
|
|
51
|
+
visitorNode: () => import_chunk_FD2NCZK4.visitorNode
|
|
52
52
|
});
|
|
53
53
|
module.exports = __toCommonJS(api_exports);
|
|
54
|
-
var
|
|
54
|
+
var import_chunk_FD2NCZK4 = require("./chunk-FD2NCZK4.cjs");
|
|
55
55
|
var import_chunk_PVBIKZYZ = require("./chunk-PVBIKZYZ.cjs");
|
|
56
56
|
var import_chunk_MBTLUWXR = require("./chunk-MBTLUWXR.cjs");
|
|
57
57
|
var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
|
|
58
|
-
(0,
|
|
58
|
+
(0, import_chunk_FD2NCZK4.init_api)();
|
|
59
59
|
// Annotate the CommonJS export names for ESM import in node:
|
|
60
60
|
0 && (module.exports = {
|
|
61
61
|
checkCompilerVersion,
|