mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Apply changes
This commit is contained in:
parent
077fe6069a
commit
407247df97
1 changed files with 9 additions and 5 deletions
|
@ -68,15 +68,19 @@ SimpleType =
|
|||
|
||||
SingletonType = STRING | 'true' | 'false'
|
||||
|
||||
UnionSuffix = {'?'} ['|' SimpleType]
|
||||
IntersectionSuffix = ['&' SimpleType]
|
||||
Type = SimpleType {UnionSuffix} | SimpleType {IntersectionSuffix}
|
||||
UnionSuffix = {'?'} {'|' SimpleType {'?'}}
|
||||
IntersectionSuffix = {'&' SimpleType}
|
||||
Type = SimpleType (UnionSuffix | IntersectionSuffix)
|
||||
|
||||
GenericTypePackParameter = NAME '...'
|
||||
GenericTypeList = NAME [',' GenericTypeList] | GenericTypePackParameter {',' GenericTypePackParameter}
|
||||
|
||||
GenericTypePackParameterWithDefault = NAME '...' ['=' (TypePack | VariadicTypePack | GenericTypePack)]
|
||||
GenericTypeListWithDefaults = NAME ['=' Type] [',' GenericTypeListWithDefaults] | GenericTypePackParameterWithDefault {',' GenericTypePackParameterWithDefault}
|
||||
GenericTypePackParameterWithDefault = NAME '...' '=' (TypePack | VariadicTypePack | GenericTypePack)
|
||||
GenericTypeListWithDefaults =
|
||||
GenericTypeList |
|
||||
NAME {',' NAME} {',' NAME '=' Type} {',' GenericTypePackParameterWithDefault} |
|
||||
NAME '=' Type {',' GenericTypePackParameterWithDefault} |
|
||||
GenericTypePackParameterWithDefault {',' GenericTypePackParameterWithDefault}
|
||||
|
||||
TypeList = Type [',' TypeList] | '...' Type
|
||||
TypeParams = (Type | TypePack | VariadicTypePack | GenericTypePack) [',' TypeParams]
|
||||
|
|
Loading…
Add table
Reference in a new issue