diff options
author | Markus Armbruster <armbru@redhat.com> | 2024-03-15 20:57:56 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2024-05-06 12:38:27 +0200 |
commit | 8152bc7de6d4377d5104078115aa61986b436f44 (patch) | |
tree | 4f7db5d0e561c028a3af388b5f1ac607122004e2 /scripts/qapi/source.py | |
parent | e0a28f39b4602de56d3c0f66a386ededd25ea109 (diff) | |
download | qemu-8152bc7de6d4377d5104078115aa61986b436f44.zip qemu-8152bc7de6d4377d5104078115aa61986b436f44.tar.gz qemu-8152bc7de6d4377d5104078115aa61986b436f44.tar.bz2 |
qapi: Move conditional code from QAPISchemaVariants to its subtypes
QAPISchemaVariants.check()'s code is almost entirely conditional on
union vs. alternate type.
Move the conditional code to QAPISchemaBranches.check() and
QAPISchemaAlternatives.check(), where the conditions are always
satisfied.
Attribute QAPISchemaVariants.tag_name is now only used by
QAPISchemaBranches. Move it there.
Refactor the three types' .__init__() to make them a bit simpler.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions