qapi: Inline check_name() into check_union()
commit77daece3d95dc7edaa5982fbbfd7afe3bc4121ac
authorMarkus Armbruster <armbru@redhat.com>
Fri, 27 Sep 2019 13:46:28 +0000 (27 15:46 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Sat, 28 Sep 2019 15:17:19 +0000 (28 17:17 +0200)
treeaab5a1fca887d02f6e5fde7cedb554673afd9c64
parente6f9678da5371642e237d6d93595dbc11bd17f85
qapi: Inline check_name() into check_union()

check_name() consists of check_name_is_str() and check_name_str().
check_union() relies on the latter to catch optional discriminators.
The next commit will replace that by a more straightforward check.
Inlining check_name() into check_union() now should make that easier
to review.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20190927134639.4284-16-armbru@redhat.com>
scripts/qapi/common.py