qemu/scripts/qapi
Markus Armbruster a9f1dd7ee0 qapi: Proper intermediate representation for modules
Modules are represented only by their names so far.  Introduce class
QAPISchemaModule.  So far, it merely wraps the name.  The next patch
will put it to more interesting use.

Once again, arrays spice up the patch a bit.  For any other type,
@info points to the definition, which lets us map from @info to
module.  For arrays, there is no definition, and @info points to the
first use instead.  We have to use the element type's module instead,
which is only available after .check().

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20191120182551.23795-5-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
2020-01-14 11:01:58 +01:00
..
__init__.py qapi-gen: New common driver for code and doc generators 2018-03-02 13:14:09 -06:00
commands.py qapi: Generate command registration stuff into separate files 2020-01-14 11:01:58 +01:00
common.py qapi: Split up scripts/qapi/common.py 2019-10-22 13:53:55 +02:00
doc.py qapi: Fix doc comment checking for commands and events 2019-10-29 07:35:16 +01:00
error.py qapi: Split up scripts/qapi/common.py 2019-10-22 13:53:55 +02:00
events.py qapi: Split up scripts/qapi/common.py 2019-10-22 13:53:55 +02:00
expr.py qapi: Fold normalize_enum() into check_enum() 2019-10-29 07:35:16 +01:00
gen.py qapi: Split up scripts/qapi/common.py 2019-10-22 13:53:55 +02:00
introspect.py qapi: Add feature flags to commands 2019-10-22 13:54:13 +02:00
parser.py qapi: Check feature documentation against the schema 2019-10-29 07:35:16 +01:00
schema.py qapi: Proper intermediate representation for modules 2020-01-14 11:01:58 +01:00
source.py qapi: Split up scripts/qapi/common.py 2019-10-22 13:53:55 +02:00
types.py qapi: Split up scripts/qapi/common.py 2019-10-22 13:53:55 +02:00
visit.py qapi: Split up scripts/qapi/common.py 2019-10-22 13:53:55 +02:00