Adjust testData: get rid of obsolete annotations
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
package test
|
||||
|
||||
[AnnotatedAnnotation]
|
||||
@[AnnotatedAnnotation]
|
||||
public annotation class AnnotatedAnnotation
|
||||
|
||||
Vendored
+1
-1
@@ -4,6 +4,6 @@ annotation class Anno
|
||||
|
||||
class Class {
|
||||
companion object {
|
||||
[Anno] var property: Int = 42
|
||||
@[Anno] var property: Int = 42
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@ package test
|
||||
|
||||
annotation class Anno(val value: String)
|
||||
|
||||
class Constructor [Anno(value = "string")]()
|
||||
class Constructor @Anno(value = "string") constructor()
|
||||
|
||||
+1
-1
@@ -4,5 +4,5 @@ annotation class Anno
|
||||
|
||||
class Class {
|
||||
val property: Int
|
||||
[Anno] get() = 42
|
||||
@[Anno] get() = 42
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,5 +3,5 @@ package test
|
||||
annotation class Anno
|
||||
|
||||
class Class {
|
||||
[Anno] var property: Int = 42
|
||||
@[Anno] var property: Int = 42
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,5 +4,5 @@ annotation class Anno
|
||||
|
||||
class Class {
|
||||
var property: Int = 42
|
||||
[Anno] set(value) { }
|
||||
@[Anno] set(value) { }
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@ package test
|
||||
annotation class Anno
|
||||
|
||||
val property: Int
|
||||
[Anno] get() = 42
|
||||
@[Anno] get() = 42
|
||||
|
||||
+1
-1
@@ -2,4 +2,4 @@ package test
|
||||
|
||||
annotation class Anno
|
||||
|
||||
[Anno] var property: Int = 42
|
||||
@[Anno] var property: Int = 42
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@ package test
|
||||
annotation class Anno
|
||||
|
||||
var property: Int = 42
|
||||
[Anno] set(value) { }
|
||||
@[Anno] set(value) { }
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@ package test
|
||||
annotation class A
|
||||
annotation class B
|
||||
|
||||
class Class([A] val x: Int, [B] y: String)
|
||||
class Class(@[A] val x: Int, @[B] y: String)
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@ package test
|
||||
annotation class A
|
||||
annotation class B
|
||||
|
||||
enum class E([A] val x: String, [B] val y: Int)
|
||||
enum class E(@[A] val x: String, @[B] val y: Int)
|
||||
|
||||
+1
-1
@@ -2,4 +2,4 @@ package test
|
||||
|
||||
annotation class A
|
||||
|
||||
fun Int.foo([A] x: Int) {}
|
||||
fun Int.foo(@[A] x: Int) {}
|
||||
|
||||
Vendored
+1
-1
@@ -4,5 +4,5 @@ package test
|
||||
annotation class Anno
|
||||
|
||||
class Class {
|
||||
fun String.foo([Anno] x: Int) = 42
|
||||
fun String.foo(@[Anno] x: Int) = 42
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -5,5 +5,5 @@ annotation class A
|
||||
class Class {
|
||||
var Int.foo: Int
|
||||
get() = this
|
||||
set([A] value) {}
|
||||
set(@[A] value) {}
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,5 +3,5 @@ package test
|
||||
annotation class Anno
|
||||
|
||||
class Class {
|
||||
fun foo([Anno] x: String) {}
|
||||
fun foo(@[Anno] x: String) {}
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,5 +4,5 @@ package test
|
||||
annotation class Anno
|
||||
|
||||
interface Trait {
|
||||
fun foo([Anno] x: String) = 42
|
||||
fun foo(@[Anno] x: String) = 42
|
||||
}
|
||||
|
||||
+2
-2
@@ -4,7 +4,7 @@ package test
|
||||
annotation class A(val s: String)
|
||||
|
||||
class Outer {
|
||||
class Nested([A("nested")] val x: String)
|
||||
class Nested(@[A("nested")] val x: String)
|
||||
|
||||
inner class Inner([A("inner")] val y: String)
|
||||
inner class Inner(@[A("inner")] val y: String)
|
||||
}
|
||||
|
||||
+2
-2
@@ -5,6 +5,6 @@ annotation class B
|
||||
annotation class C
|
||||
annotation class D
|
||||
|
||||
fun foo([A B] x: Int, [A C] y: Double, [B C D] z: String) {}
|
||||
fun foo(@[A B] x: Int, @[A C] y: Double, @[B C D] z: String) {}
|
||||
|
||||
fun bar([A B C D] x: Int) {}
|
||||
fun bar(@[A B C D] x: Int) {}
|
||||
|
||||
+1
-1
@@ -5,5 +5,5 @@ annotation class A
|
||||
class Class {
|
||||
var foo: Int
|
||||
get() = 42
|
||||
set([A] value) {}
|
||||
set(@[A] value) {}
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,4 +2,4 @@ package test
|
||||
|
||||
annotation class Anno
|
||||
|
||||
fun foo([Anno] x: Int) {}
|
||||
fun foo(@[Anno] x: Int) {}
|
||||
|
||||
+1
-1
@@ -5,4 +5,4 @@ annotation class B
|
||||
|
||||
var foo: Int
|
||||
get() = 42
|
||||
set([A B] value) {}
|
||||
set(@[A B] value) {}
|
||||
|
||||
Vendored
+1
-1
@@ -3,6 +3,6 @@ package test
|
||||
annotation class Anno
|
||||
|
||||
class Class {
|
||||
[Anno] val property: Int
|
||||
@[Anno] val property: Int
|
||||
get() = 42
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -4,7 +4,7 @@ annotation class Anno
|
||||
|
||||
class Class {
|
||||
companion object {
|
||||
[Anno] val property: Int
|
||||
@[Anno] val property: Int
|
||||
get() = 42
|
||||
}
|
||||
}
|
||||
|
||||
+3
-3
@@ -5,12 +5,12 @@ annotation class StringAnno
|
||||
annotation class DoubleAnno
|
||||
|
||||
class Class {
|
||||
[IntAnno] val Int.extension: Int
|
||||
@[IntAnno] val Int.extension: Int
|
||||
get() = this
|
||||
|
||||
[StringAnno] val String.extension: String
|
||||
@[StringAnno] val String.extension: String
|
||||
get() = this
|
||||
|
||||
[DoubleAnno] val Double.extension: Int
|
||||
@[DoubleAnno] val Double.extension: Int
|
||||
get() = 42
|
||||
}
|
||||
|
||||
+3
-3
@@ -4,11 +4,11 @@ annotation class IntAnno
|
||||
annotation class StringAnno
|
||||
annotation class DoubleAnno
|
||||
|
||||
[IntAnno] val Int.extension: Int
|
||||
@[IntAnno] val Int.extension: Int
|
||||
get() = this
|
||||
|
||||
[StringAnno] val String.extension: String
|
||||
@[StringAnno] val String.extension: String
|
||||
get() = this
|
||||
|
||||
[DoubleAnno] val Double.extension: Int
|
||||
@[DoubleAnno] val Double.extension: Int
|
||||
get() = 42
|
||||
|
||||
Vendored
+1
-1
@@ -4,6 +4,6 @@ annotation class Anno
|
||||
|
||||
class Class {
|
||||
interface Trait {
|
||||
[Anno] val property: Int
|
||||
@[Anno] val property: Int
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -2,5 +2,5 @@ package test
|
||||
|
||||
annotation class Anno
|
||||
|
||||
[Anno] val property: Int
|
||||
@[Anno] val property: Int
|
||||
get() = 42
|
||||
|
||||
Vendored
+1
-1
@@ -3,5 +3,5 @@ package test
|
||||
annotation class Anno
|
||||
|
||||
interface Trait {
|
||||
[Anno] val property: Int
|
||||
@[Anno] val property: Int
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ annotation class Anno
|
||||
|
||||
interface Trait {
|
||||
companion object {
|
||||
[Anno] val property: Int
|
||||
@[Anno] val property: Int
|
||||
get() = 42
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -5,9 +5,9 @@ import org.jetbrains.annotations.*
|
||||
public interface LoadIterable<T> {
|
||||
Mutable
|
||||
public fun getIterable(): MutableIterable<T>?
|
||||
public fun setIterable([Mutable] p0: MutableIterable<T>?)
|
||||
public fun setIterable(@Mutable p0: MutableIterable<T>?)
|
||||
|
||||
ReadOnly
|
||||
public fun getReadOnlyIterable(): Iterable<T>?
|
||||
public fun setReadOnlyIterable([ReadOnly] p0: Iterable<T>?)
|
||||
public fun setReadOnlyIterable(@ReadOnly p0: Iterable<T>?)
|
||||
}
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@ package test
|
||||
import org.jetbrains.annotations.*
|
||||
|
||||
public interface LoadIterableWithConflict<T> {
|
||||
[ReadOnly] [Mutable]
|
||||
@ReadOnly @Mutable
|
||||
public fun getIterable(): MutableIterable<T>?
|
||||
public fun setIterable([ReadOnly] [Mutable] p0: MutableIterable<T>?)
|
||||
public fun setIterable(@ReadOnly @Mutable p0: MutableIterable<T>?)
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -5,9 +5,9 @@ import org.jetbrains.annotations.*
|
||||
public interface LoadIterableWithNullability<T> {
|
||||
Mutable
|
||||
public fun getIterable(): MutableIterable<T>
|
||||
public fun setIterable([Mutable] p0: MutableIterable<T>)
|
||||
public fun setIterable(@Mutable p0: MutableIterable<T>)
|
||||
|
||||
ReadOnly
|
||||
public fun getReadOnlyIterable(): Iterable<T>
|
||||
public fun setReadOnlyIterable([ReadOnly] p0: Iterable<T>)
|
||||
public fun setReadOnlyIterable(@ReadOnly p0: Iterable<T>)
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -7,11 +7,11 @@ public interface LoadIterableWithPropagation {
|
||||
public interface LoadIterable<T> {
|
||||
Mutable
|
||||
public fun getIterable(): MutableIterable<T>?
|
||||
public fun setIterable([Mutable] p0: MutableIterable<T>?)
|
||||
public fun setIterable(@Mutable p0: MutableIterable<T>?)
|
||||
|
||||
ReadOnly
|
||||
public fun getReadOnlyIterable(): Iterable<T>?
|
||||
public fun setReadOnlyIterable([ReadOnly] p0: Iterable<T>?)
|
||||
public fun setReadOnlyIterable(@ReadOnly p0: Iterable<T>?)
|
||||
}
|
||||
|
||||
public open class LoadIterableImpl<T> : LoadIterable<T> {
|
||||
|
||||
+5
-5
@@ -4,15 +4,15 @@ import kotlin.platform.*
|
||||
|
||||
annotation class A(val s: String)
|
||||
|
||||
[platformName("bar")]
|
||||
@platformName("bar")
|
||||
A("1")
|
||||
fun foo() = "foo"
|
||||
|
||||
A("2")
|
||||
var v: Int = 1
|
||||
[platformName("vget")]
|
||||
[A("3")]
|
||||
@platformName("vget")
|
||||
@A("3")
|
||||
get
|
||||
[platformName("vset")]
|
||||
[A("4")]
|
||||
@platformName("vset")
|
||||
@A("4")
|
||||
set
|
||||
|
||||
Reference in New Issue
Block a user