Skip to content

Fold list concat expressions together - #1406

Open
TristonianJones wants to merge 1 commit into
cel-expr:masterfrom
TristonianJones:list-folding
Open

Fold list concat expressions together#1406
TristonianJones wants to merge 1 commit into
cel-expr:masterfrom
TristonianJones:list-folding

Conversation

@TristonianJones

Copy link
Copy Markdown
Collaborator

Ensure list concat expressions are folding together into single list literals
where possible.

Comment thread cel/folding.go
Comment on lines +259 to +261
for _, idx := range rightList.OptionalIndices() {
optIndices = append(optIndices, offset+idx)
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Would you mind adding some test cases for optionals? (Logic looks correct, just for coverage purposes)

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