Skip to content

Implement lazy calls in the Jbc backend by turning them into NodeBuilder objects. When used inside of a let/param, they are stored without executing (i.e. "unflattened") so that printing a let/param containing a lazy call multiple times will re-execute them for each operation. #2477

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

Merged
merged 1 commit into from
Jun 5, 2025

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented May 30, 2025

Implement lazy calls in the Jbc backend by turning them into NodeBuilder objects. When used inside of a let/param, they are stored without executing (i.e. "unflattened") so that printing a let/param containing a lazy call multiple times will re-execute them for each operation.

This is a no-op for all existing Soy, there are no gencode changes when there are no lazy calls.

@copybara-service copybara-service bot force-pushed the test_764855479 branch 7 times, most recently from 3e26c29 to fcbf710 Compare June 2, 2025 20:13
@copybara-service copybara-service bot changed the title Implement lazy calls in the Jbc backend. Implement lazy calls in the Jbc backend by turning them into NodeBuilder objects. When used inside of a let/param, they are stored without executing (i.e. "unflattened") so that printing a let/param containing a lazy call multiple times will re-execute them for each operation. Jun 2, 2025
@copybara-service copybara-service bot force-pushed the test_764855479 branch 3 times, most recently from 29e8924 to 18c7617 Compare June 5, 2025 17:53
…der objects. When used inside of a let/param, they are stored without executing (i.e. "unflattened") so that printing a let/param containing a lazy call multiple times will re-execute them for each operation.

This is a no-op for all existing Soy, there are no gencode changes when there are no lazy calls.

PiperOrigin-RevId: 767681623
@copybara-service copybara-service bot merged commit 85aaabe into master Jun 5, 2025
@copybara-service copybara-service bot deleted the test_764855479 branch June 5, 2025 18:03
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.

1 participant