mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
qapi: Rename visitor parameter @variants to @alternatives
A previous commit narrowed the type of .visit_alternate_type() parameter @variants from QAPISchemaVariants to QAPISchemaAlternatives. Rename it to @alternatives. One of them passes @alternatives to helper function gen_visit_alternate(). Rename its @variants parameter to @alternatives as well. Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
d1da8af897
commit
41d0ad1d04
6 changed files with 15 additions and 12 deletions
|
@ -348,12 +348,12 @@ const QLitObject %(c_name)s = %(c_string)s;
|
|||
def visit_alternate_type(self, name: str, info: Optional[QAPISourceInfo],
|
||||
ifcond: QAPISchemaIfCond,
|
||||
features: List[QAPISchemaFeature],
|
||||
variants: QAPISchemaAlternatives) -> None:
|
||||
alternatives: QAPISchemaAlternatives) -> None:
|
||||
self._gen_tree(
|
||||
name, 'alternate',
|
||||
{'members': [Annotated({'type': self._use_type(m.type)},
|
||||
m.ifcond)
|
||||
for m in variants.variants]},
|
||||
for m in alternatives.variants]},
|
||||
ifcond, features
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue