diff options
| author | Eric Blake <eblake@redhat.com> | 2016-07-13 21:50:15 -0600 |
|---|---|---|
| committer | Markus Armbruster <armbru@redhat.com> | 2016-07-19 13:21:08 +0200 |
| commit | da9cb19385fc66b2cb2584bbbbcbf50246d057e2 (patch) | |
| tree | cd58d2df5b69114b3fd82c8d5df05a5534c8addc /tests/qapi-schema/test-qapi.py | |
| parent | cd50a2564560986e865ff64fa73b59d2564076f0 (diff) | |
| download | focaccia-qemu-da9cb19385fc66b2cb2584bbbbcbf50246d057e2.tar.gz focaccia-qemu-da9cb19385fc66b2cb2584bbbbcbf50246d057e2.zip | |
qapi: Hide tag_name data member of variants
Clean up the only remaining external use of the tag_name field of QAPISchemaObjectTypeVariants, by explicitly listing the generated 'type' tag for all variants in the testsuite (you can still tell simple unions by the -wrapper types). Then we can mark the tag_name field as private by adding a leading underscore to prevent any further use. Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <1468468228-27827-5-git-send-email-eblake@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'tests/qapi-schema/test-qapi.py')
| -rw-r--r-- | tests/qapi-schema/test-qapi.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/qapi-schema/test-qapi.py b/tests/qapi-schema/test-qapi.py index 649677e017..bedd145452 100644 --- a/tests/qapi-schema/test-qapi.py +++ b/tests/qapi-schema/test-qapi.py @@ -47,8 +47,7 @@ class QAPISchemaTestVisitor(QAPISchemaVisitor): @staticmethod def _print_variants(variants): if variants: - if variants.tag_name: - print ' tag %s' % variants.tag_name + print ' tag %s' % variants.tag_member.name for v in variants.variants: print ' case %s: %s' % (v.name, v.type.name) |