mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 06:43:53 -06:00
qapi: Rename QAPISchemaObjectType.variants to .branches
A previous commit narrowed the type of QAPISchemaObjectType.variants from QAPISchemaVariants to QAPISchemaBranches. Rename it to .branches. Same for .__init__() parameter @variants. Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
41d0ad1d04
commit
3ff2a5a35c
5 changed files with 22 additions and 22 deletions
|
@ -118,7 +118,7 @@ def build_params(arg_type: Optional[QAPISchemaObjectType],
|
|||
ret += '%s arg' % arg_type.c_param_type()
|
||||
sep = ', '
|
||||
elif arg_type:
|
||||
assert not arg_type.variants
|
||||
assert not arg_type.branches
|
||||
for memb in arg_type.members:
|
||||
assert not memb.ifcond.is_present()
|
||||
ret += sep
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue