mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Fix type
This commit is contained in:
parent
f3c0fea22e
commit
5278daa506
1 changed files with 5 additions and 6 deletions
|
@ -63,15 +63,14 @@ SimpleType =
|
||||||
NAME ['.' NAME] [ '<' [TypeParams] '>' ] |
|
NAME ['.' NAME] [ '<' [TypeParams] '>' ] |
|
||||||
'typeof' '(' exp ')' |
|
'typeof' '(' exp ')' |
|
||||||
TableType |
|
TableType |
|
||||||
FunctionType
|
FunctionType |
|
||||||
|
'(' SimpleType ')'
|
||||||
|
|
||||||
SingletonType = STRING | 'true' | 'false'
|
SingletonType = STRING | 'true' | 'false'
|
||||||
|
|
||||||
Type =
|
UnionSuffix = {'?'} ['|' SimpleType]
|
||||||
Type ['?'] |
|
IntersectionSuffix = ['&' SimpleType]
|
||||||
Type ['|' Type] |
|
Type = SimpleType {UnionSuffix | IntersectionSuffix}
|
||||||
Type ['&' Type] |
|
|
||||||
'(' Type ')'
|
|
||||||
|
|
||||||
GenericTypePackParameter = NAME '...'
|
GenericTypePackParameter = NAME '...'
|
||||||
GenericTypeList = NAME [',' GenericTypeList] | GenericTypePackParameter {',' GenericTypePackParameter}
|
GenericTypeList = NAME [',' GenericTypeList] | GenericTypePackParameter {',' GenericTypePackParameter}
|
||||||
|
|
Loading…
Add table
Reference in a new issue