Skip to content

Refactor generate_fields.#1190

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_930147208
Jun 15, 2026
Merged

Refactor generate_fields.#1190
copybara-service[bot] merged 1 commit into
mainfrom
test_930147208

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Jun 11, 2026

Copy link
Copy Markdown

Refactor generate_fields.

generate_fields was a monolithic function that did a lot. This
introduces a struct AdtFieldGenerator to hold the shared state and
breaks that function out into multiple methods.

No behavior change is expected, and I cannot explain the golden change.
Some further refactoring can be done but it'll involve refacotring in
other parts of the code and this is already a big change.

@copybara-service copybara-service Bot force-pushed the test_930147208 branch 6 times, most recently from adb049b to 60d2cb7 Compare June 15, 2026 18:13
`generate_fields` was a monolithic function that did a lot. This
introduces a struct `AdtFieldGenerator` to hold the shared state and
breaks that function out into multiple methods.

No behavior change is expected, and I cannot explain the golden change.
Some further refactoring can be done but it'll involve refacotring in
other parts of the code and this is already a big change.

PiperOrigin-RevId: 932571510
@copybara-service copybara-service Bot merged commit f492ac4 into main Jun 15, 2026
@copybara-service copybara-service Bot deleted the test_930147208 branch June 15, 2026 18:28
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