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

Do not store the WidgetTag + base impl of visitIds #2314

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

JakeWharton
Copy link
Collaborator

Storing the WidgetTag is a waste of space. We rarely use it, and even then it's only an int so we can just codegen returning it directly.

Do not generate implementations of visitIds for nodes with no children. Have the base class invoke the lambda with the current node ID by default. Only nodes for widgets with children will override and do codegen.


  • CHANGELOG.md's "Unreleased" section has been updated, if applicable.

Storing the WidgetTag is a waste of space. We rarely use it, and even then it's only an int so we can just codegen returning it directly.

Do not generate implementations of visitIds for nodes with no children. Have the base class invoke the lambda with the current node ID by default. Only nodes for widigets with children will override and do codegen.
@JakeWharton
Copy link
Collaborator Author

Working on #2145 and pulling some prerequisites out

@JakeWharton JakeWharton merged commit 2a17540 into trunk Sep 23, 2024
22 checks passed
@JakeWharton JakeWharton deleted the jw.tweaks.2024-09-23 branch September 23, 2024 22:32
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