[IR] update testdata: print arguments for annotations

This commit is contained in:
Zalim Bashorov
2020-11-06 01:35:38 +03:00
committed by teamcityserver
parent 2a19dc32f2
commit 84d6e43590
36 changed files with 118 additions and 118 deletions
@@ -31,8 +31,8 @@ annotation class AA : Annotation {
}
@A2(...)
@AA(...)
@A2(a = A1(x = 42))
@AA(xs = [A1(x = 1), A1(x = 2)])
fun test() {
}
@@ -13,23 +13,23 @@ annotation class A : Annotation {
}
@A(...)
@A(x = "abc", y = 123)
fun test1() {
}
@A(...)
@A(x = "def")
fun test2() {
}
@A(...)
@A(x = "ghi")
fun test3() {
}
@A(...)
@A(, y = 456)
fun test4() {
}
@A(...)
@A()
fun test5() {
}
@@ -9,15 +9,15 @@ annotation class A : Annotation {
}
@A(...)
@A(xs = ["abc", "def"])
fun test1() {
}
@A(...)
@A(xs = ["abc"])
fun test2() {
}
@A(...)
@A(xs = [])
fun test3() {
}
@@ -20,13 +20,13 @@ annotation class TestAnnWithStringArray : Annotation {
}
@TestAnnWithIntArray(...)
@TestAnnWithStringArray(...)
@TestAnnWithIntArray(x = [1, 2, 3])
@TestAnnWithStringArray(x = ["a", "b", "c"])
fun test1() {
}
@TestAnnWithIntArray(...)
@TestAnnWithStringArray(...)
@TestAnnWithIntArray(x = [4, 5, 6])
@TestAnnWithStringArray(x = ["d", "e", "f"])
fun test2() {
}
@@ -21,7 +21,7 @@ class C {
}
@A(...)
@A(klass = C::class)
fun test1() {
}
@@ -9,7 +9,7 @@ annotation class TestAnn : Annotation {
}
@TestAnn(...)
@TestAnn(x = "class")
class TestClass {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
@@ -22,14 +22,14 @@ class TestClass {
}
@TestAnn(...)
@TestAnn(x = "interface")
interface TestInterface {
}
@TestAnn(...)
@TestAnn(x = "object")
object TestObject {
private constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
@@ -49,7 +49,7 @@ class Host {
}
@TestAnn(...)
@TestAnn(x = "companion")
companion object TestCompanion {
private constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
@@ -67,7 +67,7 @@ class Host {
}
@TestAnn(...)
@TestAnn(x = "enum")
enum class TestEnum : Enum<TestEnum> {
private constructor() /* primary */ {
TODO("IrEnumConstructorCall")
@@ -88,7 +88,7 @@ enum class TestEnum : Enum<TestEnum> {
}
@TestAnn(...)
@TestAnn(x = "annotation")
annotation class TestAnnotation : Annotation {
constructor() /* primary */
@@ -13,11 +13,11 @@ annotation class A : Annotation {
}
@A(...)
@A(x = 1)
fun test1() {
}
@A(...)
@A(x = 2)
fun test2() {
}
@@ -10,14 +10,14 @@ annotation class TestAnn : Annotation {
}
class TestClass {
@TestAnn(...)
@TestAnn(x = 1)
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
/* InstanceInitializerCall */
}
@TestAnn(...)
@TestAnn(x = 2)
constructor(x: Int) {
TODO("IrDelegatingConstructorCall")
}
@@ -36,18 +36,18 @@ class Cell {
val test1: Int /* by */
field = Cell(value = 1)
@A(...)
@A(x = "test1.get")
get(): Int {
return #test1$delegate.getValue(thisRef = null, kProp = ::test1)
}
var test2: Int /* by */
field = Cell(value = 2)
@A(...)
@A(x = "test2.get")
get(): Int {
return #test2$delegate.getValue(thisRef = null, kProp = ::test2)
}
@A(...)
@A(x = "test2.set")
set(<set-?>: Int) {
return #test2$delegate.setValue(thisRef = null, kProp = ::test2, newValue = <set-?>)
}
@@ -16,8 +16,8 @@ open enum class TestEnum : Enum<TestEnum> {
}
@TestAnn(...)
ENTRY1 init = TODO("IrEnumConstructorCall") @TestAnn(...)
@TestAnn(x = "ENTRY1")
ENTRY1 init = TODO("IrEnumConstructorCall") @TestAnn(x = "ENTRY2")
ENTRY2 init = TODO("IrEnumConstructorCall")
@@ -29,7 +29,7 @@ annotation class TestAnn : Annotation {
}
@TestAnn(...)
@TestAnn(x = En)
fun test1() {
}
@@ -1,7 +1,7 @@
@file:A(...)
@file:A(x = "File annotation")
package test
@Target(...)
@Target(allowedTargets = [AnnotationTarget])
annotation class A : Annotation {
constructor(x: String) /* primary */
val x: String
@@ -9,7 +9,7 @@ annotation class TestAnn : Annotation {
}
@TestAnn(...)
@TestAnn(x = 42)
fun testSimpleFunction() {
}
@@ -1,12 +1,12 @@
@JavaAnn(...)
@JavaAnn()
fun test1() {
}
@JavaAnn(...)
@JavaAnn(value = "abc", i = 123)
fun test2() {
}
@JavaAnn(...)
@JavaAnn(value = "abc", i = 123)
fun test3() {
}
@@ -10,7 +10,7 @@ annotation class A : Annotation {
}
fun foo(m: Map<String, Int>) {
@A(...)
@A(x = "foo/test")
val test: Int
val test$delegate: Lazy<Int> = lazy<Int>(initializer = local fun <anonymous>(): Int {
return 42
@@ -9,7 +9,7 @@ annotation class TestAnn : Annotation {
}
@TestAnn(...)
@TestAnn(x = "testVal.property")
val testVal: String
field = ""
get
@@ -18,14 +18,14 @@ class C {
val x: Int
field = x
@A(...)
@A(x = "C.x.get")
get
var y: Int
field = y
@A(...)
@A(x = "C.y.get")
get
@A(...)
@A(x = "C.y.set")
set
@@ -10,29 +10,29 @@ annotation class TestAnn : Annotation {
}
val test1: String
@TestAnn(...)
@TestAnn(x = "test1.get")
get(): String {
return ""
}
var test2: String
@TestAnn(...)
@TestAnn(x = "test2.get")
get(): String {
return ""
}
@TestAnn(...)
@TestAnn(x = "test2.set")
set(value: String) {
}
val test3: String
field = ""
@TestAnn(...)
@TestAnn(x = "test3.get")
get
var test4: String
field = ""
@TestAnn(...)
@TestAnn(x = "test4.get")
get
@TestAnn(...)
@TestAnn(x = "test4.set")
set
@@ -9,7 +9,7 @@ annotation class A : Annotation {
}
@A(...)
@A(xs = [["a"], ["b"]])
fun test() {
}
@@ -1,4 +1,4 @@
@Target(...)
@Target(allowedTargets = [AnnotationTarget])
annotation class TestAnn : Annotation {
constructor(x: String) /* primary */
val x: String
@@ -10,5 +10,5 @@ annotation class TestAnn : Annotation {
}
@TestAnn(...)
@TestAnn(x = "TestTypeAlias")
typealias TestTypeAlias = String
@@ -1,4 +1,4 @@
@Target(...)
@Target(allowedTargets = [AnnotationTarget])
annotation class Anno : Annotation {
constructor() /* primary */
@@ -31,15 +31,15 @@ annotation class AA : Annotation {
}
@A1(...)
@A2(...)
@AA(...)
@A1(xs = [1, 2, 3])
@A2(xs = ["a", "b", "c"])
@AA(xs = [A1(xs = [4]), A1(xs = [5]), A1(xs = [6])])
fun test1() {
}
@A1(...)
@A2(...)
@AA(...)
@A1(xs = [])
@A2(xs = [])
@AA(xs = [])
fun test2() {
}
@@ -10,9 +10,9 @@ annotation class TestAnn : Annotation {
}
fun foo() {
@TestAnn(...)
@TestAnn(x = "foo/testVal")
val testVal: String = "testVal"
@TestAnn(...)
@TestAnn(x = "foo/testVar")
var testVar: String = "testVar"
}