summaryrefslogtreecommitdiffstats
path: root/trace-events
diff options
context:
space:
mode:
authorJohn Snow2021-05-19 20:39:40 +0200
committerMarkus Armbruster2021-05-20 11:28:27 +0200
commit16ff40acc9c1fc871c2c835b3b20e374d6daed98 (patch)
tree92907ab34e3051ac259604621493188d2b4fd823 /trace-events
parentqapi/source: Remove line number from QAPISourceInfo initializer (diff)
downloadqemu-16ff40acc9c1fc871c2c835b3b20e374d6daed98.tar.gz
qemu-16ff40acc9c1fc871c2c835b3b20e374d6daed98.tar.xz
qemu-16ff40acc9c1fc871c2c835b3b20e374d6daed98.zip
qapi/parser: factor parsing routine into method
For the sake of keeping __init__ smaller (and treating it more like a gallery of what state variables we can expect to see), put the actual parsing action into a parse method. It remains invoked from the init method to reduce churn. To accomplish this, @previously_included becomes the private data member ._included, and the filename is stashed as ._fname. Add any missing declarations to the init method, and group them by function so they can be understood quickly at a glance. Signed-off-by: John Snow <jsnow@redhat.com> Message-Id: <20210519183951.3946870-5-jsnow@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'trace-events')
0 files changed, 0 insertions, 0 deletions