Skip to content

Conversation

@copybara-service
Copy link

Mock default enabling recursive planning for identifying compatibility issues.

Do not merge.

@copybara-service copybara-service bot force-pushed the test_623213699 branch 7 times, most recently from 22a299d to 38e0a1c Compare April 15, 2024 19:18
…y issues.

Do not merge.

PiperOrigin-RevId: 623213699
}

void SetRecursiveStep(std::unique_ptr<DirectExpressionStep> step, int depth) {
if (!progress_status_.ok() || PlanningSuppressed()) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

What happens if planning is suppressed and this call is encountered. I would think that normally we wouldn't get here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

It would just ignore the recursive step argument (so it just gets freed when the caller returns). The program builder will still build up the ast structure, but it won't have any program steps associated with it.

This is only really applies for bind expressions -- we still traverse the iter_range and condition subexpressions, but just ignore any of the program steps that the visitor emits.

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