Fix constant folding and local variable resolution - #1371
Merged
TristonianJones merged 3 commits intoJul 20, 2026
Conversation
TristonianJones
force-pushed
the
folding-shadowing-error
branch
from
July 18, 2026 00:36
6c2a22f to
43856d1
Compare
TristonianJones
force-pushed
the
folding-shadowing-error
branch
from
July 18, 2026 00:38
43856d1 to
75ef5c2
Compare
l46kok
reviewed
Jul 20, 2026
l46kok
approved these changes
Jul 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Align constant folding and attribute resolution behavior with cel-java, fixing local variable pattern matching during partial evaluation.
matchesUnknownPatternsto check whether a variable is locally bound (e.g. comprehension iterator/accumulator variablesi,accuVar) so local variables are not incorrectly flagged as unknown global attributes during partial evaluation.inoptimizations to cover element or identity equality even when the variable is unknown.Closes #1296