"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
@@ -1,18 +1,18 @@
package test
internal final annotation class BooleanAnno : kotlin.Annotation {
kotlin.annotation.annotation() internal final annotation class BooleanAnno : kotlin.Annotation {
/*primary*/ public constructor BooleanAnno(/*0*/ value: kotlin.Boolean)
internal final val value: kotlin.Boolean
internal final fun <get-value>(): kotlin.Boolean
}
internal final annotation class ByteAnno : kotlin.Annotation {
kotlin.annotation.annotation() internal final annotation class ByteAnno : kotlin.Annotation {
/*primary*/ public constructor ByteAnno(/*0*/ value: kotlin.Byte)
internal final val value: kotlin.Byte
internal final fun <get-value>(): kotlin.Byte
}
internal final annotation class CharAnno : kotlin.Annotation {
kotlin.annotation.annotation() internal final annotation class CharAnno : kotlin.Annotation {
/*primary*/ public constructor CharAnno(/*0*/ value: kotlin.Char)
internal final val value: kotlin.Char
internal final fun <get-value>(): kotlin.Char
@@ -22,31 +22,31 @@ test.IntAnno(value = 42) test.ShortAnno(value = 42.toShort()) test.ByteAnno(valu
/*primary*/ public constructor Class()
}
internal final annotation class DoubleAnno : kotlin.Annotation {
kotlin.annotation.annotation() internal final annotation class DoubleAnno : kotlin.Annotation {
/*primary*/ public constructor DoubleAnno(/*0*/ value: kotlin.Double)
internal final val value: kotlin.Double
internal final fun <get-value>(): kotlin.Double
}
internal final annotation class FloatAnno : kotlin.Annotation {
kotlin.annotation.annotation() internal final annotation class FloatAnno : kotlin.Annotation {
/*primary*/ public constructor FloatAnno(/*0*/ value: kotlin.Float)
internal final val value: kotlin.Float
internal final fun <get-value>(): kotlin.Float
}
internal final annotation class IntAnno : kotlin.Annotation {
kotlin.annotation.annotation() internal final annotation class IntAnno : kotlin.Annotation {
/*primary*/ public constructor IntAnno(/*0*/ value: kotlin.Int)
internal final val value: kotlin.Int
internal final fun <get-value>(): kotlin.Int
}
internal final annotation class LongAnno : kotlin.Annotation {
kotlin.annotation.annotation() internal final annotation class LongAnno : kotlin.Annotation {
/*primary*/ public constructor LongAnno(/*0*/ value: kotlin.Long)
internal final val value: kotlin.Long
internal final fun <get-value>(): kotlin.Long
}
internal final annotation class ShortAnno : kotlin.Annotation {
kotlin.annotation.annotation() internal final annotation class ShortAnno : kotlin.Annotation {
/*primary*/ public constructor ShortAnno(/*0*/ value: kotlin.Short)
internal final val value: kotlin.Short
internal final fun <get-value>(): kotlin.Short