Fix ? and type surrounded by parens

This commit is contained in:
JohnnyMorganz 2023-05-02 13:27:49 +01:00
parent 62481d1dd5
commit f3c0fea22e

View file

@ -68,9 +68,10 @@ SimpleType =
SingletonType = STRING | 'true' | 'false' SingletonType = STRING | 'true' | 'false'
Type = Type =
SimpleType ['?'] | Type ['?'] |
Type ['|' Type] | Type ['|' Type] |
Type ['&' Type] Type ['&' Type] |
'(' Type ')'
GenericTypePackParameter = NAME '...' GenericTypePackParameter = NAME '...'
GenericTypeList = NAME [',' GenericTypeList] | GenericTypePackParameter {',' GenericTypePackParameter} GenericTypeList = NAME [',' GenericTypeList] | GenericTypePackParameter {',' GenericTypePackParameter}