qapi/gen: Replace ._begin_system_module()
authorMarkus Armbruster <armbru@redhat.com>
Mon, 1 Feb 2021 19:37:37 +0000 (14:37 -0500)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 8 Feb 2021 13:15:58 +0000 (14:15 +0100)
commitf3a705928a7b1825678ff510843702652bc15f1a
tree6a7ab11bda97dd9a7676d509975355abee539817
parent98967c248c4c01085af2ff49ed3d378f79019902
qapi/gen: Replace ._begin_system_module()

QAPISchemaModularCVisitor._begin_system_module() is actually just for
the builtin module.  Rename it to ._begin_builtin_module() and drop
its useless @name parameter.

Clarify conditionals in visit_module to make this clear.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Message-Id: <20210201193747.2169670-7-jsnow@redhat.com>
scripts/qapi/gen.py
scripts/qapi/types.py
scripts/qapi/visit.py