Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for parsing and modeling WebIDL dictionaries #3

Merged
merged 6 commits into from
Feb 16, 2025

Conversation

ygdrasil-io
Copy link
Contributor

Introduced new parsing logic and models to handle WebIDL dictionaries, including members, default values, and required attributes. Updated tests to validate dictionary parsing and integrated dictionaries into the broader WebIDL model. Minor refactoring in related components to support the new functionality.

I also added github test workflow.

related to #2

Introduced new parsing logic and models to handle WebIDL dictionaries, including members, default values, and required attributes. Updated tests to validate dictionary parsing and integrated dictionaries into the broader WebIDL model. Minor refactoring in related components to support the new functionality.
This workflow supports multiple OS environments (macOS, Ubuntu, and Windows) and is triggered on pushes, pull requests, or manual dispatch. It sets up JDK, caches Gradle dependencies, and runs build and check tasks to ensure code quality.
macOS testing is excluded from the matrix to address compatibility issues with the current JDK version. It can be re-added once the project upgrades to JDK 17.
@ygdrasil-io ygdrasil-io mentioned this pull request Feb 16, 2025
16 tasks
The finishModel function now requires a non-null parentInterface, improving type safety. This ensures that parentModel assignment is always valid and avoids potential null checks.
Reordered the assignments to ensure `parentInterface` is set after `parentModel`. This helps maintain proper initialization sequence and avoids potential inconsistencies.
Simplify method calls in `finishModel()` by removing redundant parameter labels. Restructure `addAttribute` and `addFunction` for better readability and consistency. No functional changes introduced.
@ygdrasil-io ygdrasil-io marked this pull request as ready for review February 16, 2025 15:07
@fabmax
Copy link
Owner

fabmax commented Feb 16, 2025

Looks fine!

@fabmax fabmax merged commit 31b605f into fabmax:main Feb 16, 2025
@ygdrasil-io ygdrasil-io deleted the feature/add-dictionary-parsing branch February 16, 2025 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants