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 general code generation features #88

Merged
merged 507 commits into from
Feb 10, 2024
Merged

Add general code generation features #88

merged 507 commits into from
Feb 10, 2024

Conversation

theEvilReaper
Copy link
Owner

Proposed changes

The current state of the library allows for code generation in Dart, albeit with some minor issues. Not all features from Dart are currently supported, but the general features are in place. This pull request adds the current development status to the master branch

Types of changes

What types of changes does your code introduce to this project?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of
them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before
merging your code.

  • I have read the CONTRIBUTING.md
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you
did and what alternatives you considered, etc...

theEvilReaper and others added 30 commits May 2, 2023 18:56
Add typedef and library class generation
Update constructor generation to support more variants
theEvilReaper and others added 18 commits January 16, 2024 20:25
* Add support for TypeNames, unnamed extension and more

* Update extension tests

* Update documentation writing

* Update genericCast usage

* Add method to get the raw data from a TypeName

* Update cast writing

* Update extension tests

* Add jetbrains annnotations as dependency

* Add experimental annotation usage and restore methods

* Remove some methdods and update tests

* Add some ApiStatus annotation usage

* Remove unused import
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Outsource enum tests into an own dedicated test class

* Add check to minimize wrong generate code for enum classes
* Add common annotations from Dart

* Update basic annotation generation tests

* Update documentation

* Improve code structure
* Improve name pattern to allow files with multiple underscores and name tiles

* Remove unused import

* Add new test cases and cleanup class
@theEvilReaper theEvilReaper added this to the v1.0.0 milestone Jan 29, 2024
@theEvilReaper theEvilReaper self-assigned this Jan 29, 2024
theEvilReaper and others added 8 commits January 29, 2024 09:35
* Fix missing this. call when the parameter has no type

* Add missing this call

* Prevent the addition of parameters to functions which don't  have a type

* Add constant for an error message

* Add missing tests

* Update message usage
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@theEvilReaper theEvilReaper merged commit e736532 into master Feb 10, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant