@markw65/monkeyc-optimizer 1.0.16 → 1.0.19
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 +42 -0
- package/build/api.cjs +501 -332
- package/build/optimizer.cjs +551 -175
- package/build/sdk-util.cjs +1 -1
- package/build/src/api.d.ts +1 -1
- package/build/src/inliner.d.ts +12 -2
- package/build/src/mc-rewrite.d.ts +8 -1
- package/build/src/optimizer.d.ts +28 -3
- package/build/src/pragma-checker.d.ts +2 -0
- package/build/src/variable-renamer.d.ts +1 -0
- package/build/util.cjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -178,3 +178,45 @@ More fixes found via open source projects.
|
|
|
178
178
|
- Testing
|
|
179
179
|
- Add support for @match pragmas to check the optimization results
|
|
180
180
|
- Add a test project, with some inlining tests
|
|
181
|
+
|
|
182
|
+
### 1.0.17
|
|
183
|
+
|
|
184
|
+
- New Features
|
|
185
|
+
|
|
186
|
+
- Extend the inliner to support more complex functions when called in a void context
|
|
187
|
+
- Cleanup unused expressions. `0;x;foo.bar;a+b` will all now be optimized away.
|
|
188
|
+
|
|
189
|
+
- Testing
|
|
190
|
+
|
|
191
|
+
- Rewrite the @match pragma implementation to have access to the next Node in the ast, rather than just the text of the remainder of the line.
|
|
192
|
+
- Add tests for the statement inliner, and the unused expression cleanup code.
|
|
193
|
+
|
|
194
|
+
- Bug Fixes
|
|
195
|
+
- Fix a bug affecting lookup of types, which could cause definitions, references and links to the api docs to be missed in the vscode extension
|
|
196
|
+
|
|
197
|
+
### 1.0.18
|
|
198
|
+
|
|
199
|
+
- Bug Fixes
|
|
200
|
+
- The new inliner was too agressive at constant propagating literal parameters to their point of use.
|
|
201
|
+
|
|
202
|
+
### 1.0.19
|
|
203
|
+
|
|
204
|
+
- Upgrade to @markw65/prettier-plugin-monkeyc@1.0.22
|
|
205
|
+
|
|
206
|
+
- fixes some minor typing issues for mctree
|
|
207
|
+
- special handling for certain parenthesized expressions.
|
|
208
|
+
|
|
209
|
+
- Optimizer
|
|
210
|
+
|
|
211
|
+
- Handle more unused expressions, add tests, and prettify the OptimizerTests project
|
|
212
|
+
- Allow statement-style inlining in assignent and return contexts
|
|
213
|
+
- Add diagnostics for failure to inline
|
|
214
|
+
|
|
215
|
+
- Tests
|
|
216
|
+
|
|
217
|
+
- More tweaks to pragma-checker
|
|
218
|
+
- Add launch and task configs for building/running tests
|
|
219
|
+
|
|
220
|
+
- Code cleanup
|
|
221
|
+
- Properly type the results of JSON.parse
|
|
222
|
+
- Switch over to using ParenthesizedExpression for formatAst (depends on @markw65/prettier-plugin-monkeyc@1.0.22)
|