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

Register parent types before children types #25

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

ArchercatNEO
Copy link
Contributor

Fixes #24

Copy link
Owner

@raulsntos raulsntos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for the contribution, and sorry for the delay in reviewing.

Could you also add tests to Godot.SourceGenerators.Tests to ensure the generator registers the classes in the expected order? Ideally a test that failed before this PR to validate that this PR fixes it.

src/Godot.SourceGenerators/Specs/GodotRegistrationSpec.cs Outdated Show resolved Hide resolved
src/Godot.SourceGenerators/EntryPointGenerator.cs Outdated Show resolved Hide resolved
src/Godot.SourceGenerators/EntryPointGenerator.cs Outdated Show resolved Hide resolved
src/Godot.SourceGenerators/EntryPointGenerator.cs Outdated Show resolved Hide resolved
src/Godot.SourceGenerators/EntryPointGenerator.cs Outdated Show resolved Hide resolved
src/Godot.SourceGenerators/EntryPointGenerator.cs Outdated Show resolved Hide resolved
src/Godot.SourceGenerators/EntryPointGenerator.cs Outdated Show resolved Hide resolved
src/Godot.SourceGenerators/EntryPointGenerator.cs Outdated Show resolved Hide resolved
Copy link
Owner

@raulsntos raulsntos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good to me 👍

Also, since you are a new contributor, make sure to read CONTRIBUTING.md and the contributing documentation if you haven't already.

You'll need to squash the commits before this PR can be merged. The contributing documentation contains information about squashing in case you need it.

Feel free to reach out in the development chat if you need help.

@raulsntos raulsntos merged commit 2781585 into raulsntos:master Oct 9, 2024
3 checks passed
@raulsntos
Copy link
Owner

Thanks!

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.

Source generator may attempt to register child class before parent class
2 participants