-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Fix constant folding #6468
Fix constant folding #6468
Conversation
I included #6253 in this work because I realized belatedly that it's the most natural way to test the changes. |
5c17dab
to
ad80a89
Compare
This is simpler, is how native does it, and is helpful for constant folding as it allows evaluating a descendant of "let" without needing a context.
ad80a89
to
c17d3ac
Compare
Alright, rebased now that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, although I have a lingering instinct that isConstant
and friends are missing some simplifying abstraction that would make them more straightforward and less dependent on checking a bunch of highly specific conditionals.
Yeah, I've had the same feeling, but haven't had an idea for the right abstraction click into place yet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 looks good to me!
Replaces #6464
Refs mapbox/mapbox-gl-native#10849 (comment)