mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Extract out singleton types
This commit is contained in:
parent
39f85e2c9c
commit
a36d5f7b30
1 changed files with 3 additions and 3 deletions
|
@ -58,14 +58,14 @@ unop = '-' | 'not' | '#'
|
||||||
|
|
||||||
SimpleType =
|
SimpleType =
|
||||||
'nil' |
|
'nil' |
|
||||||
STRING |
|
SingletonType |
|
||||||
'true' |
|
|
||||||
'false' |
|
|
||||||
NAME ['.' NAME] [ '<' [TypeParams] '>' ] |
|
NAME ['.' NAME] [ '<' [TypeParams] '>' ] |
|
||||||
'typeof' '(' exp ')' |
|
'typeof' '(' exp ')' |
|
||||||
TableType |
|
TableType |
|
||||||
FunctionType
|
FunctionType
|
||||||
|
|
||||||
|
SingletonType = STRING | 'true' | 'false'
|
||||||
|
|
||||||
Type =
|
Type =
|
||||||
SimpleType ['?'] |
|
SimpleType ['?'] |
|
||||||
SimpleType ['|' Type] |
|
SimpleType ['|' Type] |
|
||||||
|
|
Loading…
Add table
Reference in a new issue