@markw65/monkeyc-optimizer 1.1.28 → 1.1.29

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/README.md CHANGED
@@ -887,3 +887,12 @@ No functional change, just fixes a typo that broke the typescript exports.
887
887
 
888
888
  - Improved optimizations
889
889
  - Constant folding between `Char` and types other than `Number` is now handled (previously such comparisons were just left for Garmin's compiler to handle). This works around a [bug in Garmin's optimizer](https://forums.garmin.com/developer/connect-iq/i/bug-reports/the-optimizer-constant-folds-char-comparisons-incorrectly) by (correctly) resolving the comparisons before Garmin's optimizer can do the wrong thing.
890
+
891
+ ### 1.1.29
892
+
893
+ - Bug fixes
894
+
895
+ - Fixes an issue where a value could incorrectly be inferred to be true-ish when its declared type was known to be an object of class type. This is not of itself incorrect, but some Toybox APIs are declared as returning an Object of a class, but may in fact return null - so we can't treat them as non-null.
896
+
897
+ - Enhancements
898
+ - various methods used by the extension for completion and hover info have been updated to give more accurate results.
File without changes
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: () => import_chunk_ZI7CGRJC.checkCompilerVersion,
22
- collectNamespaces: () => import_chunk_ZI7CGRJC.collectNamespaces,
23
- createDocumentationMap: () => import_chunk_ZI7CGRJC.createDocumentationMap,
24
- diagnostic: () => import_chunk_ZI7CGRJC.diagnostic,
25
- diagnosticHelper: () => import_chunk_ZI7CGRJC.diagnosticHelper,
26
- findNamesInScope: () => import_chunk_ZI7CGRJC.findNamesInScope,
27
- findUsingForNode: () => import_chunk_ZI7CGRJC.findUsingForNode,
28
- formatAst: () => import_chunk_ZI7CGRJC.formatAst,
29
- formatAstLongLines: () => import_chunk_ZI7CGRJC.formatAstLongLines,
30
- getApiFunctionInfo: () => import_chunk_ZI7CGRJC.getApiFunctionInfo,
31
- getApiMapping: () => import_chunk_ZI7CGRJC.getApiMapping,
32
- getSuperClasses: () => import_chunk_ZI7CGRJC.getSuperClasses,
21
+ checkCompilerVersion: () => import_chunk_PUYLJGKM.checkCompilerVersion,
22
+ collectNamespaces: () => import_chunk_PUYLJGKM.collectNamespaces,
23
+ createDocumentationMap: () => import_chunk_PUYLJGKM.createDocumentationMap,
24
+ diagnostic: () => import_chunk_PUYLJGKM.diagnostic,
25
+ diagnosticHelper: () => import_chunk_PUYLJGKM.diagnosticHelper,
26
+ findNamesInScope: () => import_chunk_PUYLJGKM.findNamesInScope,
27
+ findUsingForNode: () => import_chunk_PUYLJGKM.findUsingForNode,
28
+ formatAst: () => import_chunk_PUYLJGKM.formatAst,
29
+ formatAstLongLines: () => import_chunk_PUYLJGKM.formatAstLongLines,
30
+ getApiFunctionInfo: () => import_chunk_PUYLJGKM.getApiFunctionInfo,
31
+ getApiMapping: () => import_chunk_PUYLJGKM.getApiMapping,
32
+ getSuperClasses: () => import_chunk_PUYLJGKM.getSuperClasses,
33
33
  hasProperty: () => import_chunk_MBTLUWXR.hasProperty,
34
- isClassVariable: () => import_chunk_ZI7CGRJC.isClassVariable,
35
- isLocal: () => import_chunk_ZI7CGRJC.isLocal,
36
- isLookupCandidate: () => import_chunk_ZI7CGRJC.isLookupCandidate,
37
- isStateNode: () => import_chunk_ZI7CGRJC.isStateNode,
38
- lookupByFullName: () => import_chunk_ZI7CGRJC.lookupByFullName,
39
- lookupNext: () => import_chunk_ZI7CGRJC.lookupNext,
40
- lookupResultContains: () => import_chunk_ZI7CGRJC.lookupResultContains,
41
- lookupWithType: () => import_chunk_ZI7CGRJC.lookupWithType,
42
- makeToyboxLink: () => import_chunk_ZI7CGRJC.makeToyboxLink,
43
- mapVarDeclsByType: () => import_chunk_ZI7CGRJC.mapVarDeclsByType,
44
- markInvokeClassMethod: () => import_chunk_ZI7CGRJC.markInvokeClassMethod,
45
- parseSdkVersion: () => import_chunk_ZI7CGRJC.parseSdkVersion,
46
- sameLookupResult: () => import_chunk_ZI7CGRJC.sameLookupResult,
34
+ isClassVariable: () => import_chunk_PUYLJGKM.isClassVariable,
35
+ isLocal: () => import_chunk_PUYLJGKM.isLocal,
36
+ isLookupCandidate: () => import_chunk_PUYLJGKM.isLookupCandidate,
37
+ isStateNode: () => import_chunk_PUYLJGKM.isStateNode,
38
+ lookupByFullName: () => import_chunk_PUYLJGKM.lookupByFullName,
39
+ lookupNext: () => import_chunk_PUYLJGKM.lookupNext,
40
+ lookupResultContains: () => import_chunk_PUYLJGKM.lookupResultContains,
41
+ lookupWithType: () => import_chunk_PUYLJGKM.lookupWithType,
42
+ makeToyboxLink: () => import_chunk_PUYLJGKM.makeToyboxLink,
43
+ mapVarDeclsByType: () => import_chunk_PUYLJGKM.mapVarDeclsByType,
44
+ markInvokeClassMethod: () => import_chunk_PUYLJGKM.markInvokeClassMethod,
45
+ parseSdkVersion: () => import_chunk_PUYLJGKM.parseSdkVersion,
46
+ sameLookupResult: () => import_chunk_PUYLJGKM.sameLookupResult,
47
47
  traverseAst: () => import_chunk_MBTLUWXR.traverseAst,
48
- variableDeclarationName: () => import_chunk_ZI7CGRJC.variableDeclarationName,
49
- visitReferences: () => import_chunk_ZI7CGRJC.visitReferences,
50
- visit_resources: () => import_chunk_ZI7CGRJC.visit_resources,
51
- visitorNode: () => import_chunk_ZI7CGRJC.visitorNode
48
+ variableDeclarationName: () => import_chunk_PUYLJGKM.variableDeclarationName,
49
+ visitReferences: () => import_chunk_PUYLJGKM.visitReferences,
50
+ visit_resources: () => import_chunk_PUYLJGKM.visit_resources,
51
+ visitorNode: () => import_chunk_PUYLJGKM.visitorNode
52
52
  });
53
53
  module.exports = __toCommonJS(api_exports);
54
- var import_chunk_ZI7CGRJC = require("./chunk-ZI7CGRJC.cjs");
54
+ var import_chunk_PUYLJGKM = require("./chunk-PUYLJGKM.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, import_chunk_ZI7CGRJC.init_api)();
58
+ (0, import_chunk_PUYLJGKM.init_api)();
59
59
  // Annotate the CommonJS export names for ESM import in node:
60
60
  0 && (module.exports = {
61
61
  checkCompilerVersion,
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_ZI7CGRJC_exports = {};
30
- __export(chunk_ZI7CGRJC_exports, {
29
+ var chunk_PUYLJGKM_exports = {};
30
+ __export(chunk_PUYLJGKM_exports, {
31
31
  EnumTagsConst: () => EnumTagsConst,
32
32
  LastTypeTag: () => LastTypeTag,
33
33
  ObjectLikeTagsConst: () => ObjectLikeTagsConst,
@@ -122,7 +122,7 @@ __export(chunk_ZI7CGRJC_exports, {
122
122
  visitorNode: () => visitorNode,
123
123
  xml_util_exports: () => xml_util_exports
124
124
  });
125
- module.exports = __toCommonJS(chunk_ZI7CGRJC_exports);
125
+ module.exports = __toCommonJS(chunk_PUYLJGKM_exports);
126
126
  var import_chunk_PVBIKZYZ = require("./chunk-PVBIKZYZ.cjs");
127
127
  var import_chunk_MBTLUWXR = require("./chunk-MBTLUWXR.cjs");
128
128
  var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
@@ -10768,6 +10768,7 @@ function filterDecls(decls, possible, name) {
10768
10768
  return [null, null];
10769
10769
  const result = decls.reduce(
10770
10770
  (cur, decl) => {
10771
+ let declSups;
10771
10772
  const found = possible.reduce((flag, poss) => {
10772
10773
  if (decl === poss || poss.type === "ClassDeclaration" && getSuperClasses(poss)?.has(decl)) {
10773
10774
  if (!cur[0]) {
@@ -10776,12 +10777,27 @@ function filterDecls(decls, possible, name) {
10776
10777
  cur[0].add(poss);
10777
10778
  cur[1].add(poss);
10778
10779
  return true;
10779
- } else if (decl.type === "ClassDeclaration" && getSuperClasses(decl)?.has(poss)) {
10780
+ } else if (declSups !== void 0 ? declSups?.has(poss) : decl.type === "ClassDeclaration" && (declSups = getSuperClasses(decl))?.has(poss)) {
10780
10781
  if (!cur[0]) {
10781
- cur = [/* @__PURE__ */ new Set(), /* @__PURE__ */ new Set()];
10782
+ cur = [/* @__PURE__ */ new Set([decl]), /* @__PURE__ */ new Set([poss])];
10783
+ } else {
10784
+ cur[0].add(decl);
10785
+ if (Array.from(cur[1]).every((d) => {
10786
+ if (decl === d)
10787
+ return false;
10788
+ if (!declSups.has(d))
10789
+ return true;
10790
+ if (d.type === "ClassDeclaration" && getSuperClasses(d)?.has(poss)) {
10791
+ return false;
10792
+ }
10793
+ if (poss.type === "ClassDeclaration" && getSuperClasses(poss)?.has(d)) {
10794
+ cur[1].delete(d);
10795
+ }
10796
+ return true;
10797
+ })) {
10798
+ cur[1].add(poss);
10799
+ }
10782
10800
  }
10783
- cur[0].add(decl);
10784
- cur[1].add(poss);
10785
10801
  return true;
10786
10802
  }
10787
10803
  return flag;
@@ -13174,7 +13190,8 @@ var init_types = (0, import_chunk_ABYVSU2C.__esm)({
13174
13190
  ValueTypeTagsConst = 8 | 16 | 32 | 64 | 128 | 256 | 131072;
13175
13191
  ObjectLikeTagsConst = 6 | ValueTypeTagsConst | 512 | 1024 | 2048 | 65536;
13176
13192
  EnumTagsConst = SingletonTypeTagsConst | ValueTypeTagsConst & ~131072;
13177
- TruthyTypes = 4 | 32768 | 4096 | 16384 | 8192;
13193
+ TruthyTypes = 4 | // TypeTag.Object | // omit because of missing null on various Toybox types
13194
+ 4096 | 16384 | 8192;
13178
13195
  }
13179
13196
  });
13180
13197
  function couldBeHelper(a, b, shallow) {
@@ -19533,6 +19550,20 @@ function lookupWithType(state, node, typeMap, nonLocal = false, stack = null) {
19533
19550
  return [node.property.name, next];
19534
19551
  }
19535
19552
  }
19553
+ } else if (node.type === "Literal") {
19554
+ const type = typeFromLiteral(node);
19555
+ const results2 = getStateNodeDeclsFromType(state, type);
19556
+ return [node.raw, [{ parent: null, results: results2 }]];
19557
+ } else if (node.type === "UnaryExpression" && node.operator === ":") {
19558
+ return [
19559
+ node.argument.name,
19560
+ [
19561
+ {
19562
+ parent: null,
19563
+ results: lookupByFullName(state, "Toybox.Lang.Symbol")
19564
+ }
19565
+ ]
19566
+ ];
19536
19567
  }
19537
19568
  return results;
19538
19569
  }
@@ -19993,7 +20024,7 @@ function findNamesInExactScope(decl, regexp) {
19993
20024
  if (!decl.decls)
19994
20025
  return [];
19995
20026
  return Object.entries(decl.decls).flatMap(
19996
- ([key, value2]) => regexp.test(key) ? value2 : []
20027
+ ([name, decls]) => regexp.test(name) ? { name, decls } : []
19997
20028
  );
19998
20029
  }
19999
20030
  function findNamesInScope(declStack, pattern) {
@@ -20003,11 +20034,18 @@ function findNamesInScope(declStack, pattern) {
20003
20034
  decls.forEach((parent) => {
20004
20035
  if (parent.type === "ClassDeclaration") {
20005
20036
  if (parent.superClass && parent.superClass !== true) {
20006
- helper(parent.superClass, depth2 + 1);
20037
+ helper(parent.superClass, depth2);
20007
20038
  }
20008
20039
  }
20009
- findNamesInExactScope(parent, regex).forEach((sn) => {
20010
- results.set(sn, { parent, depth: depth2 });
20040
+ findNamesInExactScope(parent, regex).forEach(({ name, decls: decls2 }) => {
20041
+ let names = results.get(name);
20042
+ if (!names) {
20043
+ results.set(name, names = /* @__PURE__ */ new Map());
20044
+ }
20045
+ names.set(
20046
+ depth2,
20047
+ decls2.map((decl) => ({ decl, parent }))
20048
+ );
20011
20049
  });
20012
20050
  });
20013
20051
  };
@@ -20016,7 +20054,11 @@ function findNamesInScope(declStack, pattern) {
20016
20054
  helper(declStack[declStack.length - 1 - depth], depth);
20017
20055
  depth++;
20018
20056
  }
20019
- return Array.from(results);
20057
+ return Array.from(results.values()).map(
20058
+ (m) => Array.from(m).map(
20059
+ ([depth2, entries]) => entries.map(({ decl, parent }) => [decl, { parent, depth: depth2 }])
20060
+ )
20061
+ ).flat(2);
20020
20062
  }
20021
20063
  function mapVarDeclsByType(state, decls, node, typeMap) {
20022
20064
  return decls.flatMap((decl) => {
@@ -29802,7 +29844,7 @@ async function generateOneConfig(buildConfig, manifestXML, dependencyFiles, conf
29802
29844
  const opt_time = await (0, import_chunk_PVBIKZYZ.first_modified)(
29803
29845
  Object.values(fnMap).map((v) => v.output)
29804
29846
  );
29805
- if (source_time < opt_time && 1684251991147 < opt_time) {
29847
+ if (source_time < opt_time && 1685575802667 < opt_time) {
29806
29848
  return {
29807
29849
  hasTests,
29808
29850
  diagnostics: prevDiagnostics,
@@ -29839,7 +29881,7 @@ async function generateOneConfig(buildConfig, manifestXML, dependencyFiles, conf
29839
29881
  hasTests: hasTests2,
29840
29882
  diagnostics,
29841
29883
  sdkVersion,
29842
- optimizerVersion: "1.1.28",
29884
+ optimizerVersion: "1.1.29",
29843
29885
  ...Object.fromEntries(
29844
29886
  configOptionsToCheck.map((option) => [option, config[option]])
29845
29887
  )
@@ -18,29 +18,29 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var optimizer_exports = {};
20
20
  __export(optimizer_exports, {
21
- StateNodeAttributes: () => import_chunk_ZI7CGRJC.StateNodeAttributes,
22
- buildOptimizedProject: () => import_chunk_ZI7CGRJC.buildOptimizedProject,
21
+ StateNodeAttributes: () => import_chunk_PUYLJGKM.StateNodeAttributes,
22
+ buildOptimizedProject: () => import_chunk_PUYLJGKM.buildOptimizedProject,
23
23
  copyRecursiveAsNeeded: () => import_chunk_PVBIKZYZ.copyRecursiveAsNeeded,
24
- defaultConfig: () => import_chunk_ZI7CGRJC.defaultConfig,
25
- display: () => import_chunk_ZI7CGRJC.display,
26
- generateApiMirTests: () => import_chunk_ZI7CGRJC.generateApiMirTests,
27
- generateOneConfig: () => import_chunk_ZI7CGRJC.generateOneConfig,
28
- generateOptimizedProject: () => import_chunk_ZI7CGRJC.generateOptimizedProject,
29
- getConfig: () => import_chunk_ZI7CGRJC.getConfig,
30
- getProjectAnalysis: () => import_chunk_ZI7CGRJC.getProjectAnalysis,
31
- get_jungle: () => import_chunk_ZI7CGRJC.get_jungle,
32
- isErrorWithLocation: () => import_chunk_ZI7CGRJC.isErrorWithLocation,
33
- launchSimulator: () => import_chunk_ZI7CGRJC.launchSimulator,
34
- manifestProducts: () => import_chunk_ZI7CGRJC.manifestProducts,
35
- mctree: () => import_chunk_ZI7CGRJC.mctree,
36
- simulateProgram: () => import_chunk_ZI7CGRJC.simulateProgram
24
+ defaultConfig: () => import_chunk_PUYLJGKM.defaultConfig,
25
+ display: () => import_chunk_PUYLJGKM.display,
26
+ generateApiMirTests: () => import_chunk_PUYLJGKM.generateApiMirTests,
27
+ generateOneConfig: () => import_chunk_PUYLJGKM.generateOneConfig,
28
+ generateOptimizedProject: () => import_chunk_PUYLJGKM.generateOptimizedProject,
29
+ getConfig: () => import_chunk_PUYLJGKM.getConfig,
30
+ getProjectAnalysis: () => import_chunk_PUYLJGKM.getProjectAnalysis,
31
+ get_jungle: () => import_chunk_PUYLJGKM.get_jungle,
32
+ isErrorWithLocation: () => import_chunk_PUYLJGKM.isErrorWithLocation,
33
+ launchSimulator: () => import_chunk_PUYLJGKM.launchSimulator,
34
+ manifestProducts: () => import_chunk_PUYLJGKM.manifestProducts,
35
+ mctree: () => import_chunk_PUYLJGKM.mctree,
36
+ simulateProgram: () => import_chunk_PUYLJGKM.simulateProgram
37
37
  });
38
38
  module.exports = __toCommonJS(optimizer_exports);
39
- var import_chunk_ZI7CGRJC = require("./chunk-ZI7CGRJC.cjs");
39
+ var import_chunk_PUYLJGKM = require("./chunk-PUYLJGKM.cjs");
40
40
  var import_chunk_PVBIKZYZ = require("./chunk-PVBIKZYZ.cjs");
41
41
  var import_chunk_MBTLUWXR = require("./chunk-MBTLUWXR.cjs");
42
42
  var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
43
- (0, import_chunk_ZI7CGRJC.init_optimizer)();
43
+ (0, import_chunk_PUYLJGKM.init_optimizer)();
44
44
  // Annotate the CommonJS export names for ESM import in node:
45
45
  0 && (module.exports = {
46
46
  StateNodeAttributes,
@@ -18,25 +18,25 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var sdk_util_exports = {};
20
20
  __export(sdk_util_exports, {
21
- SectionKinds: () => import_chunk_ZI7CGRJC.SectionKinds,
22
- appSupport: () => import_chunk_ZI7CGRJC.appSupport,
23
- connectiq: () => import_chunk_ZI7CGRJC.connectiq,
24
- getDeviceInfo: () => import_chunk_ZI7CGRJC.getDeviceInfo,
25
- getFunctionDocumentation: () => import_chunk_ZI7CGRJC.getFunctionDocumentation,
26
- getLanguages: () => import_chunk_ZI7CGRJC.getLanguages,
27
- getSdkPath: () => import_chunk_ZI7CGRJC.getSdkPath,
28
- isWin: () => import_chunk_ZI7CGRJC.isWin,
29
- optimizeProgram: () => import_chunk_ZI7CGRJC.optimizeProgram,
30
- readPrg: () => import_chunk_ZI7CGRJC.readPrg,
31
- readPrgWithOffsets: () => import_chunk_ZI7CGRJC.readPrgWithOffsets,
32
- xmlUtil: () => import_chunk_ZI7CGRJC.xml_util_exports
21
+ SectionKinds: () => import_chunk_PUYLJGKM.SectionKinds,
22
+ appSupport: () => import_chunk_PUYLJGKM.appSupport,
23
+ connectiq: () => import_chunk_PUYLJGKM.connectiq,
24
+ getDeviceInfo: () => import_chunk_PUYLJGKM.getDeviceInfo,
25
+ getFunctionDocumentation: () => import_chunk_PUYLJGKM.getFunctionDocumentation,
26
+ getLanguages: () => import_chunk_PUYLJGKM.getLanguages,
27
+ getSdkPath: () => import_chunk_PUYLJGKM.getSdkPath,
28
+ isWin: () => import_chunk_PUYLJGKM.isWin,
29
+ optimizeProgram: () => import_chunk_PUYLJGKM.optimizeProgram,
30
+ readPrg: () => import_chunk_PUYLJGKM.readPrg,
31
+ readPrgWithOffsets: () => import_chunk_PUYLJGKM.readPrgWithOffsets,
32
+ xmlUtil: () => import_chunk_PUYLJGKM.xml_util_exports
33
33
  });
34
34
  module.exports = __toCommonJS(sdk_util_exports);
35
- var import_chunk_ZI7CGRJC = require("./chunk-ZI7CGRJC.cjs");
35
+ var import_chunk_PUYLJGKM = require("./chunk-PUYLJGKM.cjs");
36
36
  var import_chunk_PVBIKZYZ = require("./chunk-PVBIKZYZ.cjs");
37
37
  var import_chunk_MBTLUWXR = require("./chunk-MBTLUWXR.cjs");
38
38
  var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
39
- (0, import_chunk_ZI7CGRJC.init_sdk_util)();
39
+ (0, import_chunk_PUYLJGKM.init_sdk_util)();
40
40
  // Annotate the CommonJS export names for ESM import in node:
41
41
  0 && (module.exports = {
42
42
  SectionKinds,
@@ -22,10 +22,10 @@ export declare function lookupNext(state: ProgramStateLive, results: LookupDefin
22
22
  export declare function lookupWithType(state: ProgramStateAnalysis, node: mctree.Node, typeMap: TypeMap | undefined | null, nonLocal?: boolean, stack?: ProgramStateStack | null): LookupResult;
23
23
  export declare function collectNamespaces(ast: mctree.Program, stateIn?: ProgramState): ProgramStateNode;
24
24
  export declare function formatAst(node: mctree.Node, monkeyCSource?: string | null, options?: Record<string, unknown> | null): string;
25
- export declare function findNamesInScope(declStack: StateNode[][], pattern: string | RegExp): [StateNodeDecl, {
26
- parent: StateNode;
27
- depth: number;
28
- }][];
25
+ export declare function findNamesInScope(declStack: StateNode[][], pattern: string | RegExp): (readonly [StateNodeDecl, {
26
+ readonly parent: StateNode;
27
+ readonly depth: number;
28
+ }])[];
29
29
  export declare function mapVarDeclsByType(state: ProgramStateAnalysis, decls: StateNodeDecl[], node: mctree.Node, typeMap: TypeMap | null | undefined): (mctree.Identifier | mctree.EnumStringMember | mctree.AsIdentifier | FunctionStateNode | ClassStateNode | ModuleStateNode | ProgramStateNode | VariableStateNode | import("./optimizer-types").BlockStateNode | TypedefStateNode | EnumStateNode)[];
30
30
  export declare function formatAstLongLines(node: mctree.Node): string;
31
31
  export declare function createDocumentationMap(functionDocumentation: {
@@ -21,17 +21,17 @@ __export(worker_thread_exports, {
21
21
  default: () => worker_thread_default
22
22
  });
23
23
  module.exports = __toCommonJS(worker_thread_exports);
24
- var import_chunk_ZI7CGRJC = require("./chunk-ZI7CGRJC.cjs");
24
+ var import_chunk_PUYLJGKM = require("./chunk-PUYLJGKM.cjs");
25
25
  var import_chunk_PVBIKZYZ = require("./chunk-PVBIKZYZ.cjs");
26
26
  var import_chunk_MBTLUWXR = require("./chunk-MBTLUWXR.cjs");
27
27
  var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
28
28
  var import_node_worker_threads = require("node:worker_threads");
29
29
  var require_worker_thread = (0, import_chunk_ABYVSU2C.__commonJS)({
30
30
  "src/worker-thread.ts"() {
31
- (0, import_chunk_ZI7CGRJC.init_worker_task)();
31
+ (0, import_chunk_PUYLJGKM.init_worker_task)();
32
32
  if (import_node_worker_threads.parentPort) {
33
33
  import_node_worker_threads.parentPort.on("message", async (task) => {
34
- return import_node_worker_threads.parentPort.postMessage(await (0, import_chunk_ZI7CGRJC.performTask)(task));
34
+ return import_node_worker_threads.parentPort.postMessage(await (0, import_chunk_PUYLJGKM.performTask)(task));
35
35
  });
36
36
  }
37
37
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@markw65/monkeyc-optimizer",
3
3
  "type": "commonjs",
4
- "version": "1.1.28",
4
+ "version": "1.1.29",
5
5
  "description": "Source to source optimizer for Garmin Monkey C code",
6
6
  "main": "build/optimizer.cjs",
7
7
  "types": "build/src/optimizer.d.ts",