diff options
author | Markus Armbruster <armbru@redhat.com> | 2024-03-16 07:43:36 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2024-05-06 12:38:27 +0200 |
commit | 41d0ad1d045a1af51200ff5f2a1309e4aada0a96 (patch) | |
tree | ff0412d12c0036b9ea1f1364269c55934e36e4a5 /tests/qapi-schema | |
parent | d1da8af897340ed3773c09add93c3b9f494f2c2b (diff) | |
download | qemu-41d0ad1d045a1af51200ff5f2a1309e4aada0a96.zip qemu-41d0ad1d045a1af51200ff5f2a1309e4aada0a96.tar.gz qemu-41d0ad1d045a1af51200ff5f2a1309e4aada0a96.tar.bz2 |
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>
Diffstat (limited to 'tests/qapi-schema')
-rwxr-xr-x | tests/qapi-schema/test-qapi.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/qapi-schema/test-qapi.py b/tests/qapi-schema/test-qapi.py index 7c67ad8..7e3f9f4 100755 --- a/tests/qapi-schema/test-qapi.py +++ b/tests/qapi-schema/test-qapi.py @@ -61,9 +61,10 @@ class QAPISchemaTestVisitor(QAPISchemaVisitor): self._print_if(ifcond) self._print_features(features) - def visit_alternate_type(self, name, info, ifcond, features, variants): + def visit_alternate_type(self, name, info, ifcond, features, + alternatives): print('alternate %s' % name) - self._print_variants(variants) + self._print_variants(alternatives) self._print_if(ifcond) self._print_features(features) |