@markw65/monkeyc-optimizer 1.1.48 → 1.1.50

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.
@@ -18,28 +18,28 @@ 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_NB4IMZ6R.StateNodeAttributes,
22
- buildOptimizedProject: () => import_chunk_NB4IMZ6R.buildOptimizedProject,
21
+ StateNodeAttributes: () => import_chunk_6KP65YOB.StateNodeAttributes,
22
+ buildOptimizedProject: () => import_chunk_6KP65YOB.buildOptimizedProject,
23
23
  copyRecursiveAsNeeded: () => import_chunk_SG7ODKRM.copyRecursiveAsNeeded,
24
- defaultConfig: () => import_chunk_NB4IMZ6R.defaultConfig,
25
- display: () => import_chunk_NB4IMZ6R.display,
26
- generateOneConfig: () => import_chunk_NB4IMZ6R.generateOneConfig,
27
- generateOptimizedProject: () => import_chunk_NB4IMZ6R.generateOptimizedProject,
28
- getConfig: () => import_chunk_NB4IMZ6R.getConfig,
29
- getProjectAnalysis: () => import_chunk_NB4IMZ6R.getProjectAnalysis,
30
- get_jungle: () => import_chunk_NB4IMZ6R.get_jungle,
31
- isErrorWithLocation: () => import_chunk_NB4IMZ6R.isErrorWithLocation,
32
- launchSimulator: () => import_chunk_NB4IMZ6R.launchSimulator,
33
- manifestProducts: () => import_chunk_NB4IMZ6R.manifestProducts,
34
- mctree: () => import_chunk_NB4IMZ6R.mctree,
35
- simulateProgram: () => import_chunk_NB4IMZ6R.simulateProgram
24
+ defaultConfig: () => import_chunk_6KP65YOB.defaultConfig,
25
+ display: () => import_chunk_6KP65YOB.display,
26
+ generateOneConfig: () => import_chunk_6KP65YOB.generateOneConfig,
27
+ generateOptimizedProject: () => import_chunk_6KP65YOB.generateOptimizedProject,
28
+ getConfig: () => import_chunk_6KP65YOB.getConfig,
29
+ getProjectAnalysis: () => import_chunk_6KP65YOB.getProjectAnalysis,
30
+ get_jungle: () => import_chunk_6KP65YOB.get_jungle,
31
+ isErrorWithLocation: () => import_chunk_6KP65YOB.isErrorWithLocation,
32
+ launchSimulator: () => import_chunk_6KP65YOB.launchSimulator,
33
+ manifestProducts: () => import_chunk_6KP65YOB.manifestProducts,
34
+ mctree: () => import_chunk_6KP65YOB.mctree,
35
+ simulateProgram: () => import_chunk_6KP65YOB.simulateProgram
36
36
  });
37
37
  module.exports = __toCommonJS(optimizer_exports);
38
- var import_chunk_NB4IMZ6R = require("./chunk-NB4IMZ6R.cjs");
38
+ var import_chunk_6KP65YOB = require("./chunk-6KP65YOB.cjs");
39
39
  var import_chunk_SG7ODKRM = require("./chunk-SG7ODKRM.cjs");
40
40
  var import_chunk_MBTLUWXR = require("./chunk-MBTLUWXR.cjs");
41
41
  var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
42
- (0, import_chunk_NB4IMZ6R.init_optimizer)();
42
+ (0, import_chunk_6KP65YOB.init_optimizer)();
43
43
  // Annotate the CommonJS export names for ESM import in node:
44
44
  0 && (module.exports = {
45
45
  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_NB4IMZ6R.SectionKinds,
22
- appSupport: () => import_chunk_NB4IMZ6R.appSupport,
23
- connectiq: () => import_chunk_NB4IMZ6R.connectiq,
24
- getDeviceInfo: () => import_chunk_NB4IMZ6R.getDeviceInfo,
25
- getFunctionDocumentation: () => import_chunk_NB4IMZ6R.getFunctionDocumentation,
26
- getLanguages: () => import_chunk_NB4IMZ6R.getLanguages,
27
- getSdkPath: () => import_chunk_NB4IMZ6R.getSdkPath,
28
- isWin: () => import_chunk_NB4IMZ6R.isWin,
29
- optimizeProgram: () => import_chunk_NB4IMZ6R.optimizeProgram,
30
- readPrg: () => import_chunk_NB4IMZ6R.readPrg,
31
- readPrgWithOffsets: () => import_chunk_NB4IMZ6R.readPrgWithOffsets,
32
- xmlUtil: () => import_chunk_NB4IMZ6R.xml_util_exports
21
+ SectionKinds: () => import_chunk_6KP65YOB.SectionKinds,
22
+ appSupport: () => import_chunk_6KP65YOB.appSupport,
23
+ connectiq: () => import_chunk_6KP65YOB.connectiq,
24
+ getDeviceInfo: () => import_chunk_6KP65YOB.getDeviceInfo,
25
+ getFunctionDocumentation: () => import_chunk_6KP65YOB.getFunctionDocumentation,
26
+ getLanguages: () => import_chunk_6KP65YOB.getLanguages,
27
+ getSdkPath: () => import_chunk_6KP65YOB.getSdkPath,
28
+ isWin: () => import_chunk_6KP65YOB.isWin,
29
+ optimizeProgram: () => import_chunk_6KP65YOB.optimizeProgram,
30
+ readPrg: () => import_chunk_6KP65YOB.readPrg,
31
+ readPrgWithOffsets: () => import_chunk_6KP65YOB.readPrgWithOffsets,
32
+ xmlUtil: () => import_chunk_6KP65YOB.xml_util_exports
33
33
  });
34
34
  module.exports = __toCommonJS(sdk_util_exports);
35
- var import_chunk_NB4IMZ6R = require("./chunk-NB4IMZ6R.cjs");
35
+ var import_chunk_6KP65YOB = require("./chunk-6KP65YOB.cjs");
36
36
  var import_chunk_SG7ODKRM = require("./chunk-SG7ODKRM.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_NB4IMZ6R.init_sdk_util)();
39
+ (0, import_chunk_6KP65YOB.init_sdk_util)();
40
40
  // Annotate the CommonJS export names for ESM import in node:
41
41
  0 && (module.exports = {
42
42
  SectionKinds,
@@ -10,4 +10,5 @@ export declare function inlineDiagnostic(state: ProgramStateAnalysis, func: Func
10
10
  export type InlineContext = mctree.ReturnStatement | mctree.IfStatement | mctree.AssignmentExpression | mctree.ExpressionStatement | mctree.VariableDeclarator;
11
11
  export declare function inlineFunction(state: ProgramStateAnalysis, func: FunctionStateNode, call: mctree.CallExpression, context: InlineContext | null): InlineBody | null;
12
12
  export declare function applyTypeIfNeeded(node: mctree.Node): mctree.Node;
13
+ export declare function reportFailedInlining(state: ProgramStateAnalysis, ast: mctree.Program): void;
13
14
  export {};
@@ -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_NB4IMZ6R = require("./chunk-NB4IMZ6R.cjs");
24
+ var import_chunk_6KP65YOB = require("./chunk-6KP65YOB.cjs");
25
25
  var import_chunk_SG7ODKRM = require("./chunk-SG7ODKRM.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_NB4IMZ6R.init_worker_task)();
31
+ (0, import_chunk_6KP65YOB.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_NB4IMZ6R.performTask)(task));
34
+ return import_node_worker_threads.parentPort.postMessage(await (0, import_chunk_6KP65YOB.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.48",
4
+ "version": "1.1.50",
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",