qapi: Rename visitor parameter @variants to @branches
commitd1da8af897340ed3773c09add93c3b9f494f2c2b
authorMarkus Armbruster <armbru@redhat.com>
Fri, 15 Mar 2024 15:28:22 +0000 (15 16:28 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 6 May 2024 10:38:27 +0000 (6 12:38 +0200)
treea406d5651347b7a14d7c3aec2be2a0b791124377
parent1d067e3953e76af28ba20c995b176fcbcb7a10aa
qapi: Rename visitor parameter @variants to @branches

The previous commit narrowed the type of .visit_object_type()
parameter @variants from QAPISchemaVariants to QAPISchemaBranches.
Rename it to @branches.

Same for .visit_object_type_flat().

A few of these pass @branches to helper functions:
QAPISchemaGenRSTVisitor.visit_object_type() to ._nodes_for_members()
and ._nodes_for_variant_when(), and
QAPISchemaGenVisitVisitor.visit_object_type() to
gen_visit_object_members().  Rename the helpers' @variants parameters
to @branches as well.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
docs/sphinx/qapidoc.py
scripts/qapi/introspect.py
scripts/qapi/schema.py
scripts/qapi/types.py
scripts/qapi/visit.py
tests/qapi-schema/test-qapi.py