diff options
author | John Snow | 2021-02-01 20:37:42 +0100 |
---|---|---|
committer | Markus Armbruster | 2021-02-08 14:15:58 +0100 |
commit | fd9b1603843df86b430083b583157fe0c352901e (patch) | |
tree | 6b4cd6828c3fda27d5204cfec40ce539a7f2f437 /scripts/qapi/source.py | |
parent | qapi: centralize the built-in module name definition (diff) | |
download | qemu-fd9b1603843df86b430083b583157fe0c352901e.tar.gz qemu-fd9b1603843df86b430083b583157fe0c352901e.tar.xz qemu-fd9b1603843df86b430083b583157fe0c352901e.zip |
qapi/gen: write _genc/_genh access shims
Many places assume they can access these fields without checking them
first to ensure they are defined. Eliminating the _genc and _genh fields
and replacing them with functional properties that check for correct
state can ease the typing overhead by eliminating the Optional[T] return
type.
Signed-off-by: John Snow <jsnow@redhat.com>
Message-Id: <20210201193747.2169670-12-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions