Refactor: Generate all struct bindings within the codegen.
PiperOrigin-RevId: 828973537 Change-Id: I3f371d2f88e1cd9b1bb5c0a9c6a5ace7a21673fb
This commit is contained in:
committed by
Copybara-Service
parent
2c2773e36d
commit
06ecdd6ba1
@@ -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 }}",
|
||||
|
||||
Reference in New Issue
Block a user