aboutsummaryrefslogtreecommitdiff
path: root/scripts/qapi
AgeCommit message (Expand)AuthorFilesLines
2021-05-20qapi/parser: add docstringsJohn Snow1-0/+69
2021-05-20qapi/parser: allow 'ch' variable nameJohn Snow1-0/+1
2021-05-20qapi/parser: Remove superfluous list comprehensionJohn Snow1-1/+1
2021-05-20qapi/parser: add type hint annotationsJohn Snow1-20/+38
2021-05-20qapi/parser: Rework _check_pragma_list_of_str as a TypeGuardJohn Snow1-14/+16
2021-05-20qapi/parser: Fix token membership tests when token can be NoneJohn Snow1-2/+3
2021-05-20qapi: add must_match helperJohn Snow3-11/+16
2021-05-20qapi/parser: Use @staticmethod where appropriateJohn Snow1-2/+4
2021-05-20qapi/parser: assert object keys are stringsJohn Snow1-0/+2
2021-05-20qapi/parser: enforce all top-level expressions must be dict in _parse()John Snow1-6/+8
2021-05-20qapi/parser: Assert lexer value is a stringJohn Snow1-0/+1
2021-05-20qapi/parser: factor parsing routine into methodJohn Snow1-12/+28
2021-05-20qapi/source: Remove line number from QAPISourceInfo initializerJohn Snow2-8/+4
2021-05-20qapi/parser: Don't try to handle file errorsJohn Snow3-14/+18
2021-04-30qapi/error.py: enable mypy checksJohn Snow1-5/+0
2021-04-30qapi/error: Add type hintsJohn Snow1-2/+9
2021-04-30qapi/error.py: enable pylint checksJohn Snow1-2/+1
2021-04-30qapi/error.py: move QAPIParseError to parser.pyJohn Snow2-15/+21
2021-04-30qapi/error: assert QAPISourceInfo is not NoneJohn Snow1-0/+1
2021-04-30qapi/error: Make QAPISourceError 'col' parameter optionalJohn Snow2-7/+4
2021-04-30qapi/error: Use Python3-style super()John Snow1-1/+1
2021-04-30qapi/error: Repurpose QAPIError as an abstract base exception classJohn Snow2-4/+12
2021-04-30qapi/expr: Update authorship and copyright informationJohn Snow1-1/+2
2021-04-30qapi/expr.py: Use tuples instead of lists for static dataJohn Snow1-2/+2
2021-04-30qapi/expr.py: Add docstringsJohn Snow1-5/+251
2021-04-30qapi/expr: Only explicitly prohibit 'Kind' nor 'List' for type namesJohn Snow1-3/+3
2021-04-30qapi/expr.py: enable pylint checksJohn Snow1-1/+0
2021-04-30qapi/expr.py: Remove single-letter variableJohn Snow1-7/+7
2021-04-30qapi/expr.py: Consolidate check_if_str calls in check_ifJohn Snow1-17/+16
2021-04-30qapi/expr.py: add type hint annotationsJohn Snow2-30/+43
2021-04-30qapi/expr.py: Modify check_keys to accept any CollectionJohn Snow1-1/+1
2021-04-30qapi/expr.py: Add casts in a few select casesJohn Snow1-5/+5
2021-04-30qapi/expr.py: Check type of union and alternate 'data' memberJohn Snow1-0/+7
2021-04-30qapi/expr.py: move string check upwards in check_typeJohn Snow1-4/+4
2021-04-30qapi/expr.py: Add assertion for union type 'check_dict'John Snow1-1/+3
2021-04-30qapi/expr.py: constrain incoming expression typesJohn Snow1-3/+25
2021-04-30qapi/expr.py: Check for dict instead of OrderedDictJohn Snow1-3/+2
2021-04-30qapi/expr.py: Remove 'info' argument from nested check_if_strJohn Snow1-3/+3
2021-04-30qapi/expr: Comment cleanupJohn Snow1-1/+1
2021-03-23qapi: Enforce union and alternate branch naming rulesMarkus Armbruster1-2/+2
2021-03-23qapi: Enforce enum member naming rulesMarkus Armbruster1-2/+3
2021-03-23qapi: Enforce struct member naming rulesMarkus Armbruster1-2/+3
2021-03-23qapi: Enforce command naming rulesMarkus Armbruster3-2/+8
2021-03-23qapi: Enforce feature naming rulesMarkus Armbruster1-1/+1
2021-03-23qapi: Prepare for rejecting underscore in command and member namesMarkus Armbruster1-10/+14
2021-03-23qapi: Rename pragma *-whitelist to *-exceptionsMarkus Armbruster4-11/+11
2021-03-23qapi: Factor out QAPISchemaParser._check_pragma_list_of_str()Markus Armbruster1-10/+9
2021-03-23qapi: Enforce type naming rulesMarkus Armbruster1-1/+2
2021-03-23qapi: Enforce event naming rulesMarkus Armbruster1-1/+3
2021-03-23qapi: Consistently permit any case in downstream prefixesMarkus Armbruster1-1/+1