qapi/parser.py: assert member.info is present in connect_member
Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-ID: <20240315152301.3621858-21-armbru@redhat.com>
This commit is contained in:
parent
7c6e446476
commit
d5e2f3d03c
@ -707,6 +707,7 @@ class QAPIDoc:
|
||||
|
||||
def connect_member(self, member: 'QAPISchemaMember') -> None:
|
||||
if member.name not in self.args:
|
||||
assert member.info
|
||||
if self.symbol not in member.info.pragma.documentation_exceptions:
|
||||
raise QAPISemError(member.info,
|
||||
"%s '%s' lacks documentation"
|
||||
|
Loading…
Reference in New Issue
Block a user