qapi/source: Remove line number from QAPISourceInfo initializer
authorJohn Snow <jsnow@redhat.com>
Wed, 19 May 2021 18:39:39 +0000 (14:39 -0400)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 20 May 2021 09:28:27 +0000 (11:28 +0200)
commitb2b31fdf9bc66a82718c9e6ede2f364b0005728a
treec2bd8ecea4a4536e35000ae291c64290c5ddae0a
parent334c3cd58a202d082703a1ae175b4230f4157f65
qapi/source: Remove line number from QAPISourceInfo initializer

With the QAPISourceInfo(None, None, None) construct gone, there's no
longer any reason to have to specify that a file starts on the first
line. Remove it from the initializer and default it to 1.

Remove the last vestiges where we check for 'line' being unset, that
can't happen, now.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-Id: <20210519183951.3946870-4-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi/parser.py
scripts/qapi/source.py