Repository navigation
v0.4.0
Major changes:
- Add B4X++ Closure / anonymous Sub support.
- Add local closure lifting for simple non-escaping closures.
- Add B4XPPClosure runtime class for passed, stored or returned closures.
- Generate B4XPPClosure as a real B4X Class module.
- Use the real B4X Initialize(...) constructor for closure runtime values.
- Add Closure keyword syntax highlighting and snippets.
- Add Go to Definition support for closure parameters and captured variables.
- Add Closure Console B4J Non-UI example.
Language and transpiler improvements:
- Add property read/write sugar in B4X++ source.
- Support inline property assignments.
- Support property reads through generated getters.
- Improve generated B4X compatibility for flattened OOP classes.
- Improve handling of CustomView recommendations as warnings instead of blocking errors.
Validation and diagnostics:
- Add strict validation mode.
- Add basic semantic diagnostics for unknown identifiers, unknown types and simple type mismatches.
- Add method argument count diagnostics.
- Improve diagnostics around external types and libraries.
Library indexing:
- Add support for B4X XML library metadata.
- Add support for direct .b4xlib indexing.
- Parse b4xlib modules, public methods, fields, types, events and designer properties.
- Add platform-scoped library indexing for B4J, B4A and B4i.
- Ensure B4J projects only use B4J library folders, B4A projects only use B4A folders, and B4i projects only use B4i folders.
- Add cached library index with refresh command support.
Project and B4XLib directives:
- Add project-level dependency directives:
#ProjectDependsOn
#ProjectB4JDependsOn
#ProjectB4ADependsOn
#ProjectB4iDependsOn - Add explicit B4XLib metadata directives:
#B4XLibVersion
#B4XLibAuthor
#B4XLibSupportedPlatforms
#B4XLibDependsOn
#B4XLibB4JDependsOn
#B4XLibB4ADependsOn
#B4XLibB4iDependsOn - Keep backward compatibility with older directives where possible.
- Separate native project dependencies from B4XLib manifest metadata.
Native B4X project support:
- Parse native .b4j, .b4a and .b4i project headers.
- Read Library1, Library2, Module1, File1, ManifestCode and project metadata.
- Generate native project library entries from B4X++ project dependency directives.
- Improve project synchronization for B4J UI, B4J Non-UI and B4XLib projects.
VS Code tooling:
- Add B4X++ Project Settings UI.
- Add project settings for source/output/project/b4xlib folders.
- Add configurable B4J/B4A/B4i internal and additional library directories.
- Add library reload and dependency selection UI.
- Add completion for project and B4XLib dependency directives.
- Add platform-scoped completion for #ProjectB4JDependsOn, #ProjectB4ADependsOn, #ProjectB4iDependsOn and B4XLib equivalents.
- Add type completion driven by declared dependencies and indexed libraries.
- Remove hardcoded XUI/B4X UI type assumptions from completion.
- Add hover information for external types, including source library and module.
Documentation and examples:
- Reorganize README.
- Move license section to the end of README.
- Update CHANGELOG for v0.4.0.
- Update B4X++ skill documentation.
- Regenerate XUI Breakout example.
- Add Closure Console example.
- Keep generated examples aligned with v0.4.0.