Render property accessor annotations in .txt test data
If property accessor rendering is disabled in a test, render annotations on accessors as use-site-targeted, as was done with `@setparam:`-annotations. Otherwise they were lost
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@ package
|
||||
|
||||
public final class My {
|
||||
public constructor My(/*0*/ x: kotlin.Int)
|
||||
@smartget public final var y: kotlin.Int
|
||||
@smartget @get:base @get:smartget @get:smartset @set:base @set:smartget @set:smartset public final var y: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
@base @smartget @smartset public final fun foo(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
|
||||
@@ -75,7 +75,7 @@ package test {
|
||||
@test.AnnotationTargets.base @test.AnnotationTargets.meta @test.AnnotationTargets.type @test.AnnotationTargets.method @test.AnnotationTargets.multiple public final class KClass {
|
||||
@test.AnnotationTargets.base @test.AnnotationTargets.method @test.AnnotationTargets.konstructor public constructor KClass()
|
||||
public constructor KClass(/*0*/ @test.AnnotationTargets.base @test.AnnotationTargets.parameter y: @test.AnnotationTargets.base @test.AnnotationTargets.type kotlin.Int)
|
||||
@test.AnnotationTargets.base @test.AnnotationTargets.local @field:test.AnnotationTargets.multiple @field:test.AnnotationTargets.fieldann public final val x: kotlin.Int = 0
|
||||
@test.AnnotationTargets.base @test.AnnotationTargets.local @field:test.AnnotationTargets.multiple @field:test.AnnotationTargets.fieldann @get:test.AnnotationTargets.method @get:test.AnnotationTargets.konstructor @get:test.AnnotationTargets.type public final val x: kotlin.Int = 0
|
||||
@field:test.AnnotationTargets.fieldann public final val y: @test.AnnotationTargets.base @test.AnnotationTargets.type kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
@test.AnnotationTargets.base @test.AnnotationTargets.method @test.AnnotationTargets.multiple @test.AnnotationTargets.konstructor public final fun foo(/*0*/ @test.AnnotationTargets.parameter @test.AnnotationTargets.type i: @test.AnnotationTargets.base @test.AnnotationTargets.multiple kotlin.Int): @test.AnnotationTargets.fieldann @test.AnnotationTargets.parameter kotlin.Int
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package
|
||||
|
||||
@unrepann(x = 0) public var annotated: kotlin.Int
|
||||
@unrepann(x = 0) @get:unrepann(x = 1) public var annotated: kotlin.Int
|
||||
@unrepann(x = 0) @unrepann(x = 1) public var annotated2: kotlin.Int
|
||||
@ann(y = 0) @ann(y = 1) public fun foo(/*0*/ @ann(y = 7) @ann(y = 2) x: kotlin.Int): kotlin.Int
|
||||
|
||||
|
||||
+5
-5
@@ -17,11 +17,11 @@ public final class CustomDelegate {
|
||||
|
||||
@Ann public final class SomeClass {
|
||||
public constructor SomeClass()
|
||||
protected final val delegatedProperty: kotlin.String
|
||||
protected final var mutableProperty: kotlin.String
|
||||
public final val propertyWithCustomGetter: kotlin.Int
|
||||
protected final val simpleProperty: kotlin.String = "text"
|
||||
protected final val simplePropertyWithAnnotationList: kotlin.String = "text"
|
||||
@get:Ann protected final val delegatedProperty: kotlin.String
|
||||
@get:Ann protected final var mutableProperty: kotlin.String
|
||||
@get:Ann public final val propertyWithCustomGetter: kotlin.Int
|
||||
@get:Ann protected final val simpleProperty: kotlin.String = "text"
|
||||
@get:Ann protected final val simplePropertyWithAnnotationList: kotlin.String = "text"
|
||||
public final fun annotationOnFunction(/*0*/ a: kotlin.Int): kotlin.Int
|
||||
public final fun anotherFun(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
|
||||
+4
-4
@@ -18,10 +18,10 @@ public final class CustomDelegate {
|
||||
|
||||
@Ann public final class SomeClass {
|
||||
public constructor SomeClass()
|
||||
protected final var delegatedProperty: kotlin.String
|
||||
protected final var mutableProperty: kotlin.String
|
||||
protected final var mutablePropertyWithAnnotationList: kotlin.String
|
||||
public final var propertyWithCustomSetter: kotlin.Int
|
||||
@set:Ann protected final var delegatedProperty: kotlin.String
|
||||
@set:Ann protected final var mutableProperty: kotlin.String
|
||||
@set:Ann protected final var mutablePropertyWithAnnotationList: kotlin.String
|
||||
@set:Ann public final var propertyWithCustomSetter: kotlin.Int
|
||||
protected final val simpleProperty: kotlin.String = "text"
|
||||
public final fun annotationOnFunction(/*0*/ a: kotlin.Int): kotlin.Int
|
||||
public final fun anotherFun(): kotlin.Unit
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ public final annotation class Ann : kotlin.Annotation {
|
||||
|
||||
public final class B {
|
||||
public constructor B(/*0*/ @fieldOrPropAnn x: kotlin.Int, /*1*/ y: kotlin.Int)
|
||||
@getSetAndParamAnn @setparam:getSetAndParamAnn public final var w: kotlin.Int
|
||||
@getSetAndParamAnn @get:getSetAndParamAnn @set:getSetAndParamAnn @setparam:getSetAndParamAnn public final var w: kotlin.Int
|
||||
@fieldOrPropAnn public final val x: kotlin.Int
|
||||
@fieldOrPropAnn @fieldOrPropAnn public final val y: kotlin.Int
|
||||
@fieldOrPropAnn @field:fieldOrPropAnn public final val z: kotlin.Int = 42
|
||||
|
||||
Reference in New Issue
Block a user