@markw65/monkeyc-optimizer 1.1.7 → 1.1.8
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 +12 -0
- package/build/api.cjs +3230 -166
- package/build/optimizer.cjs +52 -48
- package/build/sdk-util.cjs +25 -1
- package/build/src/api.d.ts +17 -1
- package/build/src/optimizer-types.d.ts +12 -8
- package/build/src/sdk-util.d.ts +5 -0
- package/build/src/type-flow/types.d.ts +2 -3
- package/build/src/type-flow.d.ts +1 -1
- package/build/src/visitor.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -654,3 +654,15 @@ Bug Fixes
|
|
|
654
654
|
|
|
655
655
|
- Bug fixes
|
|
656
656
|
- Fix a problem with inlining that could inadvertently make locals from the callee function appear to belong to the callee's class or module. This could sometimes block optimizations, and also cause confusion for the type checker.
|
|
657
|
+
|
|
658
|
+
### 1.1.8
|
|
659
|
+
|
|
660
|
+
- Bug fixes
|
|
661
|
+
|
|
662
|
+
- After making a non-modifying change to a variable, update the types of all equivalent variables. eg in `var x = y; if (y != null) { whatever }` we know that x is not null in `whatever`, even though we didn't explicitly test it.
|
|
663
|
+
- Fix an issue with `import` and `using`. If an import happened after the definition of an inline function, inlined copies of the function might incorrectly use those imports resulting in finding the wrong symbols. This was rare - most imports happen at the top of the file, and generally an import will simply make something work that would have failed, rather than changing the behavior of something that already works. But I added a test case that exhibits the problem.
|
|
664
|
+
|
|
665
|
+
- New features
|
|
666
|
+
- Add support for comletion style lookups - find all the names available in the current context that fuzzy match a given string
|
|
667
|
+
- Add helpers to read the function documentation from api.debug.xml
|
|
668
|
+
- Add an option to visitReferences to only find a specific definition, rather than all definitions for that name in the current scope.
|