Adjust descriptor renderer to latest parsing changes
- `constructor` keyword expected in primary constructor with non-empty modifier list - annotation list should be preceeded by '@'
This commit is contained in:
@@ -3,7 +3,7 @@ package
|
||||
Ann(x = IntegerValueType(1): IntegerValueType(1)) Ann(x = IntegerValueType(2): IntegerValueType(2)) Ann(x = IntegerValueType(3): IntegerValueType(3)) private final class A {
|
||||
Ann() public constructor A()
|
||||
Ann() internal final val x: kotlin.Int = 1
|
||||
internal final fun bar(/*0*/ x: [Ann(x = IntegerValueType(1): IntegerValueType(1)) Ann(x = IntegerValueType(2): IntegerValueType(2)) Ann(x = IntegerValueType(3): IntegerValueType(3))] kotlin.Int): kotlin.Unit
|
||||
internal final fun bar(/*0*/ x: @[Ann(x = IntegerValueType(1): IntegerValueType(1)) Ann(x = IntegerValueType(2): IntegerValueType(2)) Ann(x = IntegerValueType(3): IntegerValueType(3))] kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
Ann(x = IntegerValueType(5): IntegerValueType(5)) internal final fun foo(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package
|
||||
|
||||
internal val block: ([Ann()] kotlin.String) -> [Ann()] kotlin.String
|
||||
internal val block: (@[Ann()] kotlin.String) -> @[Ann()] kotlin.String
|
||||
internal val y: kotlin.Array<kotlin.String?>
|
||||
internal fun bar(/*0*/ block: () -> kotlin.Int): kotlin.Int
|
||||
internal fun bar2(): kotlin.Array<Q>
|
||||
@@ -13,7 +13,7 @@ Ann() Ann() internal final class A {
|
||||
Ann() internal final fun foo(/*0*/ Ann() x: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
internal final fun x(): [Ann()] kotlin.String
|
||||
internal final fun x(): @[Ann()] kotlin.String
|
||||
}
|
||||
|
||||
internal final annotation class Ann : kotlin.Annotation {
|
||||
@@ -30,7 +30,7 @@ internal interface B {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
internal interface D : [Ann()] B {
|
||||
internal interface D : @[Ann()] B {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package
|
||||
|
||||
internal fun [[ERROR : x]()] A.foo(/*0*/ a: [[ERROR : x]()] kotlin.Int): kotlin.Unit
|
||||
internal fun @[[ERROR : x]()] A.foo(/*0*/ a: @[[ERROR : x]()] kotlin.Int): kotlin.Unit
|
||||
|
||||
internal final class A {
|
||||
public constructor A()
|
||||
|
||||
@@ -3,8 +3,8 @@ package
|
||||
a() internal fun <no name provided>(): kotlin.Unit
|
||||
internal fun <no name provided>(): kotlin.Unit
|
||||
internal fun outerFun(): kotlin.Unit
|
||||
internal fun @[a()] A.<no name provided>(): kotlin.Unit
|
||||
internal fun A.<no name provided>(): kotlin.Unit
|
||||
internal fun [a()] A.<no name provided>(): kotlin.Unit
|
||||
|
||||
internal interface A {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
@@ -25,8 +25,8 @@ internal final class Outer {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
internal final fun @[a()] A.<no name provided>(): kotlin.Unit
|
||||
internal final fun B.<no name provided>(): kotlin.Unit
|
||||
internal final fun [a()] A.<no name provided>(): kotlin.Unit
|
||||
}
|
||||
|
||||
internal final annotation class a : kotlin.Annotation {
|
||||
|
||||
@@ -2,4 +2,4 @@ package test
|
||||
|
||||
annotation class A
|
||||
|
||||
fun ([A] String).foo() {}
|
||||
fun (@A String).foo() {}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
internal fun [test.A()] kotlin.String.foo(): kotlin.Unit
|
||||
internal fun @[test.A()] kotlin.String.foo(): kotlin.Unit
|
||||
|
||||
internal final annotation class A : kotlin.Annotation {
|
||||
/*primary*/ public constructor A()
|
||||
|
||||
@@ -3,5 +3,5 @@ package test
|
||||
annotation class A
|
||||
|
||||
class SimpleTypeAnnotation {
|
||||
fun foo(x: [A] IntRange): [A] Int = 42
|
||||
fun foo(x: @A IntRange): @A Int = 42
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,5 +6,5 @@ internal final annotation class A : kotlin.Annotation {
|
||||
|
||||
internal final class SimpleTypeAnnotation {
|
||||
/*primary*/ public constructor SimpleTypeAnnotation()
|
||||
internal final fun foo(/*0*/ x: [test.A()] kotlin.IntRange): [test.A()] kotlin.Int
|
||||
internal final fun foo(/*0*/ x: @[test.A()] kotlin.IntRange): @[test.A()] kotlin.Int
|
||||
}
|
||||
|
||||
@@ -2,6 +2,6 @@ package test
|
||||
|
||||
annotation class A
|
||||
|
||||
trait Foo<T : [A] Number> : [A] CharSequence {
|
||||
fun <E, F : [A] E> bar()
|
||||
trait Foo<T : @A Number> : @A CharSequence {
|
||||
fun <E, F : @A E> bar()
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@ internal final annotation class A : kotlin.Annotation {
|
||||
/*primary*/ public constructor A()
|
||||
}
|
||||
|
||||
internal interface Foo</*0*/ T : [test.A()] kotlin.Number> : [test.A()] kotlin.CharSequence {
|
||||
internal abstract fun </*0*/ E, /*1*/ F : [test.A()] E> bar(): kotlin.Unit
|
||||
internal interface Foo</*0*/ T : @[test.A()] kotlin.Number> : @[test.A()] kotlin.CharSequence {
|
||||
internal abstract fun </*0*/ E, /*1*/ F : @[test.A()] E> bar(): kotlin.Unit
|
||||
public abstract override /*1*/ /*fake_override*/ fun charAt(/*0*/ index: kotlin.Int): kotlin.Char
|
||||
public abstract override /*1*/ /*fake_override*/ fun length(): kotlin.Int
|
||||
public abstract override /*1*/ /*fake_override*/ fun subSequence(/*0*/ start: kotlin.Int, /*1*/ end: kotlin.Int): kotlin.CharSequence
|
||||
|
||||
+1
-1
@@ -5,5 +5,5 @@ package test
|
||||
annotation class Ann(val x: String, val y: Double)
|
||||
|
||||
class TypeAnnotationWithArguments {
|
||||
fun foo(param: [Ann("param", 3.14)] IntRange): [Ann("fun", 2.72)] Unit {}
|
||||
fun foo(param: @Ann("param", 3.14) IntRange): @Ann("fun", 2.72) Unit {}
|
||||
}
|
||||
|
||||
+1
-1
@@ -10,5 +10,5 @@ internal final annotation class Ann : kotlin.Annotation {
|
||||
|
||||
internal final class TypeAnnotationWithArguments {
|
||||
/*primary*/ public constructor TypeAnnotationWithArguments()
|
||||
internal final fun foo(/*0*/ param: [test.Ann(x = "param": kotlin.String, y = 3.14.toDouble(): kotlin.Double)] kotlin.IntRange): [test.Ann(x = "fun": kotlin.String, y = 2.72.toDouble(): kotlin.Double)] kotlin.Unit
|
||||
internal final fun foo(/*0*/ param: @[test.Ann(x = "param": kotlin.String, y = 3.14.toDouble(): kotlin.Double)] kotlin.IntRange): @[test.Ann(x = "fun": kotlin.String, y = 2.72.toDouble(): kotlin.Double)] kotlin.Unit
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user