diff options
| author | John Snow | 2021-05-19 20:39:41 +0200 |
|---|---|---|
| committer | Markus Armbruster | 2021-05-20 11:28:27 +0200 |
| commit | 7c610ce6a9950a49148fc3d37ed353958ca8d776 (patch) | |
| tree | 4e5af55a52a26bd9805334c41e07d2aeb7a1e643 /tests/qapi-schema | |
| parent | qapi/parser: factor parsing routine into method (diff) | |
| download | qemu-7c610ce6a9950a49148fc3d37ed353958ca8d776.tar.gz qemu-7c610ce6a9950a49148fc3d37ed353958ca8d776.tar.xz qemu-7c610ce6a9950a49148fc3d37ed353958ca8d776.zip | |
qapi/parser: Assert lexer value is a string
The type checker can't narrow the type of the token value to string,
because it's only loosely correlated with the return token.
We know that a token of '#' should always have a "str" value.
Add an assertion.
Signed-off-by: John Snow <jsnow@redhat.com>
Message-Id: <20210519183951.3946870-6-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'tests/qapi-schema')
0 files changed, 0 insertions, 0 deletions
