Removed obosolete modifier "ref" from tests

This commit is contained in:
Valentin Kipyatkov
2015-10-13 17:15:02 +03:00
parent dfcf459bf6
commit 292ea7625c
8 changed files with 368 additions and 405 deletions
+1 -2
View File
@@ -13,7 +13,6 @@ public
internal internal
in in
out out
ref
class Bar<abstract class Bar<abstract
open open
enum enum
@@ -28,7 +27,7 @@ ref
internal internal
in in
out out
ref T> { T> {
val abstract val abstract
val open val open
val enum val enum
+2 -12
View File
@@ -15,6 +15,7 @@ JetFile: SimpleModifiers.kt
IMPORT_LIST IMPORT_LIST
<empty list> <empty list>
PsiWhiteSpace('\n\n') PsiWhiteSpace('\n\n')
CLASS
MODIFIER_LIST MODIFIER_LIST
PsiElement(abstract)('abstract') PsiElement(abstract)('abstract')
PsiWhiteSpace('\n') PsiWhiteSpace('\n')
@@ -42,10 +43,6 @@ JetFile: SimpleModifiers.kt
PsiWhiteSpace('\n') PsiWhiteSpace('\n')
PsiElement(out)('out') PsiElement(out)('out')
PsiWhiteSpace('\n ') PsiWhiteSpace('\n ')
PsiErrorElement:Expecting a top level declaration
PsiElement(IDENTIFIER)('ref')
PsiWhiteSpace('\n ')
CLASS
PsiElement(class)('class') PsiElement(class)('class')
PsiWhiteSpace(' ') PsiWhiteSpace(' ')
PsiElement(IDENTIFIER)('Bar') PsiElement(IDENTIFIER)('Bar')
@@ -81,17 +78,10 @@ JetFile: SimpleModifiers.kt
PsiWhiteSpace('\n ') PsiWhiteSpace('\n ')
PsiElement(out)('out') PsiElement(out)('out')
PsiWhiteSpace('\n ') PsiWhiteSpace('\n ')
PsiElement(IDENTIFIER)('ref')
PsiWhiteSpace(' ')
PsiErrorElement:Missing '>'
PsiElement(IDENTIFIER)('T') PsiElement(IDENTIFIER)('T')
PsiErrorElement:Expecting a top level declaration
PsiElement(GT)('>') PsiElement(GT)('>')
PsiWhiteSpace(' ') PsiWhiteSpace(' ')
FUN CLASS_BODY
PsiErrorElement:Expecting a top level declaration
<empty list>
BLOCK
PsiElement(LBRACE)('{') PsiElement(LBRACE)('{')
PsiWhiteSpace('\n ') PsiWhiteSpace('\n ')
PROPERTY PROPERTY
-1
View File
@@ -16,7 +16,6 @@ public
internal internal
in in
out out
ref
class Bar<abstract, abstract enum : T, out open, class Bar<abstract, abstract enum : T, out open,
public protected private internal abstract public protected private internal abstract
open open
+1 -4
View File
@@ -20,6 +20,7 @@ JetFile: SoftKeywords.kt
REFERENCE_EXPRESSION REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('foo') PsiElement(IDENTIFIER)('foo')
PsiWhiteSpace('\n\n') PsiWhiteSpace('\n\n')
CLASS
MODIFIER_LIST MODIFIER_LIST
PsiElement(public)('public') PsiElement(public)('public')
PsiWhiteSpace(' ') PsiWhiteSpace(' ')
@@ -55,10 +56,6 @@ JetFile: SoftKeywords.kt
PsiWhiteSpace('\n') PsiWhiteSpace('\n')
PsiElement(out)('out') PsiElement(out)('out')
PsiWhiteSpace('\n ') PsiWhiteSpace('\n ')
PsiErrorElement:Expecting a top level declaration
PsiElement(IDENTIFIER)('ref')
PsiWhiteSpace('\n ')
CLASS
PsiElement(class)('class') PsiElement(class)('class')
PsiWhiteSpace(' ') PsiWhiteSpace(' ')
PsiElement(IDENTIFIER)('Bar') PsiElement(IDENTIFIER)('Bar')
+1 -2
View File
@@ -17,7 +17,6 @@ internal
in in
@[sdfsdf] @[sdfsdf]
out out
ref
class Bar<abstract class Bar<abstract
open open
@[sdfsdf(1+1) a] @[sdfsdf(1+1) a]
@@ -36,5 +35,5 @@ public
internal internal
in in
out out
ref T> { T> {
} }
+2 -12
View File
@@ -15,6 +15,7 @@ JetFile: Annotations.kt
IMPORT_LIST IMPORT_LIST
<empty list> <empty list>
PsiWhiteSpace('\n\n') PsiWhiteSpace('\n\n')
CLASS
MODIFIER_LIST MODIFIER_LIST
PsiElement(abstract)('abstract') PsiElement(abstract)('abstract')
PsiWhiteSpace('\n') PsiWhiteSpace('\n')
@@ -160,10 +161,6 @@ JetFile: Annotations.kt
PsiWhiteSpace('\n') PsiWhiteSpace('\n')
PsiElement(out)('out') PsiElement(out)('out')
PsiWhiteSpace('\n ') PsiWhiteSpace('\n ')
PsiErrorElement:Expecting a top level declaration
PsiElement(IDENTIFIER)('ref')
PsiWhiteSpace('\n ')
CLASS
PsiElement(class)('class') PsiElement(class)('class')
PsiWhiteSpace(' ') PsiWhiteSpace(' ')
PsiElement(IDENTIFIER)('Bar') PsiElement(IDENTIFIER)('Bar')
@@ -319,17 +316,10 @@ JetFile: Annotations.kt
PsiWhiteSpace('\n') PsiWhiteSpace('\n')
PsiElement(out)('out') PsiElement(out)('out')
PsiWhiteSpace('\n') PsiWhiteSpace('\n')
PsiElement(IDENTIFIER)('ref')
PsiWhiteSpace(' ')
PsiErrorElement:Missing '>'
PsiElement(IDENTIFIER)('T') PsiElement(IDENTIFIER)('T')
PsiErrorElement:Expecting a top level declaration
PsiElement(GT)('>') PsiElement(GT)('>')
PsiWhiteSpace(' ') PsiWhiteSpace(' ')
FUN CLASS_BODY
PsiErrorElement:Expecting a top level declaration
<empty list>
BLOCK
PsiElement(LBRACE)('{') PsiElement(LBRACE)('{')
PsiWhiteSpace('\n') PsiWhiteSpace('\n')
PsiElement(RBRACE)('}') PsiElement(RBRACE)('}')
+1 -2
View File
@@ -19,7 +19,6 @@ in
@[sdfsdf ] @[sdfsdf ]
@[s fd d, ] @[s fd d, ]
out out
ref
class Bar<abstract class Bar<abstract
open open
enum enum
@@ -35,5 +34,5 @@ public
internal internal
in in
out out
ref T> { T> {
} }
+2 -12
View File
@@ -15,6 +15,7 @@ JetFile: Annotations_ERR.kt
IMPORT_LIST IMPORT_LIST
<empty list> <empty list>
PsiWhiteSpace('\n\n') PsiWhiteSpace('\n\n')
CLASS
MODIFIER_LIST MODIFIER_LIST
PsiElement(abstract)('abstract') PsiElement(abstract)('abstract')
PsiWhiteSpace('\n') PsiWhiteSpace('\n')
@@ -198,10 +199,6 @@ JetFile: Annotations_ERR.kt
PsiWhiteSpace('\n') PsiWhiteSpace('\n')
PsiElement(out)('out') PsiElement(out)('out')
PsiWhiteSpace('\n ') PsiWhiteSpace('\n ')
PsiErrorElement:Expecting a top level declaration
PsiElement(IDENTIFIER)('ref')
PsiWhiteSpace('\n ')
CLASS
PsiElement(class)('class') PsiElement(class)('class')
PsiWhiteSpace(' ') PsiWhiteSpace(' ')
PsiElement(IDENTIFIER)('Bar') PsiElement(IDENTIFIER)('Bar')
@@ -274,17 +271,10 @@ JetFile: Annotations_ERR.kt
PsiWhiteSpace('\n') PsiWhiteSpace('\n')
PsiElement(out)('out') PsiElement(out)('out')
PsiWhiteSpace('\n') PsiWhiteSpace('\n')
PsiElement(IDENTIFIER)('ref')
PsiWhiteSpace(' ')
PsiErrorElement:Missing '>'
PsiElement(IDENTIFIER)('T') PsiElement(IDENTIFIER)('T')
PsiErrorElement:Expecting a top level declaration
PsiElement(GT)('>') PsiElement(GT)('>')
PsiWhiteSpace(' ') PsiWhiteSpace(' ')
FUN CLASS_BODY
PsiErrorElement:Expecting a top level declaration
<empty list>
BLOCK
PsiElement(LBRACE)('{') PsiElement(LBRACE)('{')
PsiWhiteSpace('\n') PsiWhiteSpace('\n')
PsiElement(RBRACE)('}') PsiElement(RBRACE)('}')