]> git.ipfire.org Git - thirdparty/qemu.git/commit
qapi: New QAPISourceInfo, replacing dict
authorMarkus Armbruster <armbru@redhat.com>
Fri, 27 Sep 2019 13:46:16 +0000 (15:46 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Sat, 28 Sep 2019 15:17:18 +0000 (17:17 +0200)
commit19e950d9d47d3efe4c8d5c6c872a53889a54363c
tree55ece4d49cd14a4aaae60711a4d1ddab36164984
parent57608a5299064f7219d00447160103946c796436
qapi: New QAPISourceInfo, replacing dict

We track source locations with a dict of the form

    {'file': FNAME, 'line': LINENO, 'parent': PARENT}

where PARENT is None for the main file, and the include directive's
source location for included files.

This is serviceable enough, but the next commit will add information,
and that's going to come out cleaner if we turn this into a class.  So
do that.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20190927134639.4284-4-armbru@redhat.com>
scripts/qapi/common.py