Refactor: Generate all struct bindings within the codegen.

PiperOrigin-RevId: 828973537
Change-Id: I3f371d2f88e1cd9b1bb5c0a9c6a5ace7a21673fb
This commit is contained in:
Matias Manevi
2025-11-06 08:48:52 -08:00
committed by Copybara-Service
parent 2c2773e36d
commit 06ecdd6ba1
5 changed files with 1517 additions and 1590 deletions
+1 -8
View File
@@ -65,14 +65,7 @@ class Generator:
autogenned_struct_source.append(
struct_data.wrapped_source + "\n"
)
if struct_data.bindings:
autogenned_struct_bindings.append(struct_data.bindings)
else:
# Bindings with markers
markers_and_content.append((
f"// INSERT-GENERATED-{struct_data.wrap_name}-BINDINGS",
[l.binding for l in struct_data.wrapped_fields],
))
autogenned_struct_bindings.append(struct_data.bindings)
markers_and_content.append((
"// {{ AUTOGENNED_STRUCTS_SOURCE }}",