qapi: Eliminate .check_doc() overrides
commit1192a4862b02b01c77415c3c04b5931e2b0b42bf
authorMarkus Armbruster <armbru@redhat.com>
Thu, 24 Oct 2019 11:02:31 +0000 (24 13:02 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 29 Oct 2019 06:35:16 +0000 (29 07:35 +0100)
tree43a66aaf433807533d0821a02661f73f73409f54
parenta710e1c8c3f1c0dda45608927d6f9cedd898c0d2
qapi: Eliminate .check_doc() overrides

All sub-classes of QAPISchemaEntity now override .check_doc() the same
way, except for QAPISchemaType and and QAPISchemaArrayType.

Put the overrides' code in QAPISchemaEntity.check_doc(), and drop the
overrides.  QAPISchemaType doesn't care because it's abstract.
QAPISchemaArrayType doesn't care because its .doc is always None.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20191024110237.30963-14-armbru@redhat.com>
scripts/qapi/schema.py