Fix () to be a 0-ary tuple, not empty PARENTHESIZED

This commit is contained in:
Andrey Breslav
2011-01-14 21:14:10 +03:00
parent 97df7d9116
commit 6cb2747a76
4 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -324,7 +324,7 @@ JetFile: NewlinesInParentheses.jet
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('T')
PsiWhiteSpace('\n ')
PARENTHESIZED
TUPLE
PsiElement(LPAR)('(')
PsiElement(RPAR)(')')
PsiWhiteSpace('\n')
+1 -1
View File
@@ -32,4 +32,4 @@ fun foo() {
a || b && c
a = b -> c
a = b || c
}
}
+1 -1
View File
@@ -20,7 +20,7 @@ JetFile: SimpleExpressions.jet
PsiWhiteSpace(' ')
PsiElement(EQ)('=')
PsiWhiteSpace(' ')
PARENTHESIZED
TUPLE
PsiElement(LPAR)('(')
PsiElement(RPAR)(')')
PsiElement(COMMA)(',')