"annotation" is now parsed as an identifier. It is no longer a soft keyword.

Sometimes it's allowed to parse "annotation" unescaped even if other annotations must be escaped.
A set of annotations and their options tests.
A swarm of existing tests fixed (mostly kotlin.annotation.annotation() added to txt-files).
STUB_VERSION increased. Some quick fixes slightly changed.
This commit is contained in:
Mikhail Glukhikh
2015-06-26 16:30:20 +03:00
parent 7a6e5f66bd
commit 1eac4d67de
231 changed files with 1915 additions and 334 deletions
@@ -0,0 +1,3 @@
<caret> class Annotated
// EXIST: annotation
@@ -0,0 +1,4 @@
annotation(<caret>) class Annotated
// EXIST: retention
// EXIST: repeatable
@@ -0,0 +1,3 @@
<caret> annotation class Annotated
// EXIST: target
@@ -5,7 +5,6 @@ class MouseMovedEventArgs
}
// EXIST: abstract
// EXIST: annotation
// EXIST: as
// EXIST: class
// EXIST: enum
@@ -13,7 +13,6 @@ class B {
<caret>
// EXIST: abstract
// EXIST: annotation
// EXIST: class
// EXIST: enum
// EXIST: final
-1
View File
@@ -11,7 +11,6 @@ class A {
}
// EXIST: abstract
// EXIST: annotation
// EXIST: class
// EXIST: enum
// EXIST: final
-1
View File
@@ -1,7 +1,6 @@
@<caret>[]
// EXIST: {"lookupString":"abstract","itemText":"abstract","attributes":"bold"}
// EXIST: {"lookupString":"annotation","itemText":"annotation","attributes":"bold"}
// EXIST: {"lookupString":"class","itemText":"class","attributes":"bold"}
// EXIST: {"lookupString":"companion object","itemText":"companion object","attributes":"bold"}
// EXIST: {"lookupString":"enum","itemText":"enum","attributes":"bold"}
@@ -10,7 +10,6 @@ var a : Int
<caret>
// EXIST: abstract
// EXIST: annotation
// EXIST: by
// EXIST: class
// EXIST: enum
@@ -9,7 +9,6 @@ public class Test {
// EXIST: abstract
// EXIST: annotation
// EXIST: class
// EXIST: enum
// EXIST: final
@@ -3,7 +3,6 @@ class TestClass {
}
// EXIST: abstract
// EXIST: annotation
// EXIST: class
// EXIST: enum
// EXIST: final
@@ -3,7 +3,6 @@ package Test
<caret>
// EXIST: abstract
// EXIST: annotation
// EXIST: class
// EXIST: enum
// EXIST: final
@@ -4,7 +4,6 @@ class Some {
}
// EXIST: abstract
// EXIST: annotation
// EXIST: by
// EXIST: class
// EXIST: enum
@@ -4,7 +4,6 @@ class Some {
}
// EXIST: abstract
// EXIST: annotation
// EXIST: as
// EXIST: class
// EXIST: enum
@@ -5,7 +5,6 @@ class Some {
}
// EXIST: abstract
// EXIST: annotation
// EXIST: as
// EXIST: class
// EXIST: enum
-1
View File
@@ -1,7 +1,6 @@
<caret>
// EXIST: abstract
// EXIST: annotation
// EXIST: class
// EXIST: enum
// EXIST: final