Analysis API: update rendering testdata after changing renderer
This commit is contained in:
Vendored
+2
@@ -1,2 +1,4 @@
|
|||||||
open class A
|
open class A
|
||||||
|
|
||||||
class B : A
|
class B : A
|
||||||
|
|
||||||
|
|||||||
+5
-2
@@ -1,7 +1,10 @@
|
|||||||
abstract class A {
|
abstract class A {
|
||||||
abstract class Nested
|
abstract class Nested
|
||||||
}
|
}
|
||||||
|
|
||||||
typealias TA = A
|
typealias TA = A
|
||||||
|
|
||||||
class B : TA {
|
class B : TA {
|
||||||
class NestedInB : A.Nested
|
class NestedInB : A.Nested
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+6
-4
@@ -1,8 +1,10 @@
|
|||||||
abstract class My {
|
abstract class My {
|
||||||
abstract class NestedOne : My {
|
abstract class NestedOne : My {
|
||||||
abstract class NestedTwo : My.NestedOne
|
abstract class NestedTwo : My.NestedOne
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class Your : My {
|
class Your : My {
|
||||||
class NestedThree : My.NestedOne
|
class NestedThree : My.NestedOne
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+27
-14
@@ -1,16 +1,29 @@
|
|||||||
@Target(allowedTargets = [kotlin.annotation.AnnotationTarget.ANNOTATION_CLASS]) annotation class base
|
@Target(allowedTargets = [kotlin.annotation.AnnotationTarget.ANNOTATION_CLASS])
|
||||||
@base annotation class derived
|
annotation class base
|
||||||
@base class correct {
|
|
||||||
constructor(x: Int)
|
@base
|
||||||
@base constructor()
|
annotation class derived
|
||||||
@base val x: Int
|
|
||||||
|
@base
|
||||||
|
class correct {
|
||||||
|
constructor(x: Int)
|
||||||
|
|
||||||
|
@base
|
||||||
|
constructor()
|
||||||
|
|
||||||
|
@base
|
||||||
|
val x: Int
|
||||||
}
|
}
|
||||||
@base enum class My {
|
|
||||||
FIRST,
|
@base
|
||||||
SECOND,
|
enum class My {
|
||||||
|
FIRST,
|
||||||
|
SECOND
|
||||||
}
|
}
|
||||||
@base fun foo(@base y: @base Int): Int {
|
|
||||||
@base fun bar(@base z: @base Int): Int
|
@base
|
||||||
@base val local: Int
|
fun foo(@base y: @base Int): Int
|
||||||
}
|
|
||||||
@base val z: Int
|
@base
|
||||||
|
val z: Int
|
||||||
|
|
||||||
|
|||||||
+27
-14
@@ -1,16 +1,29 @@
|
|||||||
@Target(allowedTargets = [kotlin.annotation.AnnotationTarget.ANNOTATION_CLASS]) annotation class base
|
@Target(allowedTargets = [kotlin.annotation.AnnotationTarget.ANNOTATION_CLASS])
|
||||||
@base annotation class derived
|
annotation class base
|
||||||
@base class correct {
|
|
||||||
constructor(@base x: Int)
|
@base
|
||||||
@base constructor()
|
annotation class derived
|
||||||
@base val x: Int
|
|
||||||
|
@base
|
||||||
|
class correct {
|
||||||
|
constructor(@base x: Int)
|
||||||
|
|
||||||
|
@base
|
||||||
|
constructor()
|
||||||
|
|
||||||
|
@base
|
||||||
|
val x: Int
|
||||||
}
|
}
|
||||||
@base enum class My {
|
|
||||||
FIRST,
|
@base
|
||||||
SECOND,
|
enum class My {
|
||||||
|
FIRST,
|
||||||
|
SECOND
|
||||||
}
|
}
|
||||||
@base fun foo(@base y: @base Int): Int {
|
|
||||||
@base fun bar(@base z: @base Int): Int
|
@base
|
||||||
@base val local: Int
|
fun foo(@base y: @base Int): Int
|
||||||
}
|
|
||||||
@base val z: Int
|
@base
|
||||||
|
val z: Int
|
||||||
|
|
||||||
|
|||||||
+4
-2
@@ -1,6 +1,8 @@
|
|||||||
class C<T, out S> {
|
class C<T, out S> {
|
||||||
inner class D<R, in P>
|
inner class D<R, in P>
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Test {
|
interface Test {
|
||||||
val x: C<out CharSequence, *>.D<in List<*>, *>
|
val x: C<out CharSequence, *>.D<in List<*>, *>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
object A {
|
||||||
|
constructor()
|
||||||
|
}
|
||||||
|
|
||||||
|
enum class B {
|
||||||
|
X
|
||||||
|
}
|
||||||
|
|
||||||
|
class C {
|
||||||
|
companion object {
|
||||||
|
constructor()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
val anonObject: Any
|
||||||
|
|
||||||
+7
-7
@@ -1,12 +1,12 @@
|
|||||||
object A {
|
object A
|
||||||
constructor()
|
|
||||||
}
|
|
||||||
enum class B {
|
enum class B {
|
||||||
X,
|
X
|
||||||
}
|
}
|
||||||
|
|
||||||
class C {
|
class C {
|
||||||
companion object {
|
companion object
|
||||||
constructor()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val anonObject: Any
|
val anonObject: Any
|
||||||
|
|
||||||
|
|||||||
+5
-7
@@ -1,10 +1,8 @@
|
|||||||
interface IFace<T> {
|
interface IFace<T> {
|
||||||
fun getStatus(arg: T): Boolean
|
fun getStatus(arg: T): Boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
class Some
|
class Some
|
||||||
private fun resolve(): IFace<Some> {
|
|
||||||
object : IFace<Some> {
|
private fun resolve(): IFace<Some>
|
||||||
constructor()
|
|
||||||
override fun getStatus(arg: Some): Boolean
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
+8
-6
@@ -1,12 +1,14 @@
|
|||||||
interface MyRwProperty<in T, V> {
|
interface MyRwProperty<in T, V> {
|
||||||
operator fun getValue(thisRef: T, property: Any): V
|
operator fun getValue(thisRef: T, property: Any): V
|
||||||
operator fun setValue(thisRef: T, property: Any, value: V)
|
|
||||||
|
operator fun setValue(thisRef: T, property: Any, value: V)
|
||||||
}
|
}
|
||||||
|
|
||||||
val x: Int
|
val x: Int
|
||||||
get()
|
|
||||||
val delegate: MyRwProperty<Any?, Int>
|
val delegate: MyRwProperty<Any?, Int>
|
||||||
|
|
||||||
val value: Int
|
val value: Int
|
||||||
get()
|
|
||||||
var variable: Int
|
var variable: Int
|
||||||
get()
|
|
||||||
set(value: Int)
|
|
||||||
|
|||||||
+7
-3
@@ -1,8 +1,12 @@
|
|||||||
open class Base<T> {
|
open class Base<T> {
|
||||||
constructor(x: T)
|
constructor(x: T)
|
||||||
val x: T
|
|
||||||
|
val x: T
|
||||||
}
|
}
|
||||||
|
|
||||||
class Derived<T : Any> : Base<T> {
|
class Derived<T : Any> : Base<T> {
|
||||||
constructor(x: T)
|
constructor(x: T)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun <T : Any> create(x: T): Derived<T>
|
fun <T : Any> create(x: T): Derived<T>
|
||||||
|
|
||||||
|
|||||||
+2
-3
@@ -1,3 +1,2 @@
|
|||||||
fun test() {
|
fun test()
|
||||||
val x: Any
|
|
||||||
}
|
|
||||||
|
|||||||
analysis/analysis-api/testData/components/symbolDeclarationRenderer/renderDeclaration/enums.rendered
Vendored
+36
-24
@@ -1,30 +1,42 @@
|
|||||||
enum class Order {
|
enum class Order {
|
||||||
FIRST,
|
FIRST,
|
||||||
SECOND,
|
SECOND,
|
||||||
THIRD,
|
THIRD
|
||||||
}
|
}
|
||||||
|
|
||||||
enum class Planet {
|
enum class Planet {
|
||||||
MERCURY,
|
EARTH,
|
||||||
VENERA,
|
MERCURY,
|
||||||
EARTH,
|
VENERA;
|
||||||
constructor(m: Double, r: Double)
|
|
||||||
val g: Double
|
constructor(m: Double, r: Double)
|
||||||
val m: Double
|
|
||||||
internal val r: Double
|
val g: Double
|
||||||
abstract fun sayHello()
|
|
||||||
companion object {
|
val m: Double
|
||||||
const val G: Double
|
|
||||||
}
|
internal val r: Double
|
||||||
|
|
||||||
|
abstract fun sayHello()
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val G: Double
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
enum class PseudoInsn {
|
enum class PseudoInsn {
|
||||||
FIX_STACK_BEFORE_JUMP,
|
AS_NOT_NULL,
|
||||||
FAKE_ALWAYS_TRUE_IFEQ,
|
FAKE_ALWAYS_FALSE_IFEQ,
|
||||||
FAKE_ALWAYS_FALSE_IFEQ,
|
FAKE_ALWAYS_TRUE_IFEQ,
|
||||||
SAVE_STACK_BEFORE_TRY,
|
FIX_STACK_BEFORE_JUMP,
|
||||||
RESTORE_STACK_IN_TRY_CATCH,
|
RESTORE_STACK_IN_TRY_CATCH,
|
||||||
STORE_NOT_NULL,
|
SAVE_STACK_BEFORE_TRY,
|
||||||
AS_NOT_NULL,
|
STORE_NOT_NULL;
|
||||||
constructor(signature: String = ...)
|
|
||||||
val signature: String
|
constructor(signature: String = ...)
|
||||||
fun emit()
|
|
||||||
|
val signature: String
|
||||||
|
|
||||||
|
fun emit()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+12
-5
@@ -1,10 +1,17 @@
|
|||||||
interface Some
|
interface Some
|
||||||
|
|
||||||
object O1 : Some
|
object O1 : Some
|
||||||
|
|
||||||
object O2 : Some
|
object O2 : Some
|
||||||
|
|
||||||
enum class SomeEnum {
|
enum class SomeEnum {
|
||||||
FIRST,
|
FIRST,
|
||||||
SECOND,
|
SECOND;
|
||||||
constructor(x: Some)
|
|
||||||
val x: Some
|
constructor(x: Some)
|
||||||
abstract fun check(y: Some): Boolean
|
|
||||||
|
val x: Some
|
||||||
|
|
||||||
|
abstract fun check(y: Some): Boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+6
@@ -1,6 +1,12 @@
|
|||||||
expect class MyClass
|
expect class MyClass
|
||||||
|
|
||||||
expect fun foo(): String
|
expect fun foo(): String
|
||||||
|
|
||||||
expect val x: Int
|
expect val x: Int
|
||||||
|
|
||||||
actual class MyClass
|
actual class MyClass
|
||||||
|
|
||||||
actual fun foo(): String
|
actual fun foo(): String
|
||||||
|
|
||||||
actual val x: Int
|
actual val x: Int
|
||||||
|
|
||||||
|
|||||||
+3
@@ -1,3 +1,6 @@
|
|||||||
fun <T> simpleRun(f: (T) -> Unit)
|
fun <T> simpleRun(f: (T) -> Unit)
|
||||||
|
|
||||||
fun <T, R> List<T>.simpleMap(f: (T) -> R): R
|
fun <T, R> List<T>.simpleMap(f: (T) -> R): R
|
||||||
|
|
||||||
fun <T> simpleWith(t: T, f: T.() -> Unit)
|
fun <T> simpleWith(t: T, f: T.() -> Unit)
|
||||||
|
|
||||||
|
|||||||
+4
-1
@@ -1,5 +1,8 @@
|
|||||||
interface Any
|
interface Any
|
||||||
|
|
||||||
inline fun <reified T : Any> Any.safeAs(): T?
|
inline fun <reified T : Any> Any.safeAs(): T?
|
||||||
|
|
||||||
abstract class Summator {
|
abstract class Summator {
|
||||||
abstract fun <T> plus(first: T, second: T): T
|
abstract fun <T> plus(first: T, second: T): T
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -1,3 +1,4 @@
|
|||||||
fun <T> genericFoo(): T
|
fun <T> genericFoo(): T
|
||||||
|
|
||||||
val <T> T.generic: T
|
val <T> T.generic: T
|
||||||
get()
|
|
||||||
|
|||||||
+1
@@ -1 +1,2 @@
|
|||||||
private fun foo(x: Any): Any?
|
private fun foo(x: Any): Any?
|
||||||
|
|
||||||
|
|||||||
+10
-6
@@ -1,10 +1,14 @@
|
|||||||
abstract class Base {
|
abstract class Base {
|
||||||
constructor(s: String)
|
constructor(s: String)
|
||||||
val s: String
|
|
||||||
|
val s: String
|
||||||
}
|
}
|
||||||
|
|
||||||
class Outer {
|
class Outer {
|
||||||
class Derived : Base {
|
class Derived : Base {
|
||||||
constructor(s: String)
|
constructor(s: String)
|
||||||
}
|
}
|
||||||
object Obj : Base
|
|
||||||
|
object Obj : Base
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+6
-3
@@ -1,5 +1,8 @@
|
|||||||
class NoPrimary {
|
class NoPrimary {
|
||||||
constructor()
|
constructor()
|
||||||
constructor(x: String)
|
|
||||||
val x: String
|
constructor(x: String)
|
||||||
|
|
||||||
|
val x: String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+13
-8
@@ -1,13 +1,18 @@
|
|||||||
interface SomeInterface {
|
interface SomeInterface {
|
||||||
val bar: Boolean
|
val bar: Boolean
|
||||||
fun foo(x: Int, y: String): String
|
|
||||||
|
fun foo(x: Int, y: String): String
|
||||||
}
|
}
|
||||||
|
|
||||||
class SomeClass : SomeInterface {
|
class SomeClass : SomeInterface {
|
||||||
override var bar: Boolean
|
override var bar: Boolean
|
||||||
get()
|
|
||||||
set(value: Boolean)
|
private val baz: Int
|
||||||
private val baz: Int
|
|
||||||
lateinit var fau: Double
|
lateinit var fau: Double
|
||||||
override fun foo(x: Int, y: String): String
|
|
||||||
|
override fun foo(x: Int, y: String): String
|
||||||
}
|
}
|
||||||
|
|
||||||
inline class InlineClass
|
inline class InlineClass
|
||||||
|
|
||||||
|
|||||||
+2
@@ -1,2 +1,4 @@
|
|||||||
fun foo()
|
fun foo()
|
||||||
|
|
||||||
suspend fun bar()
|
suspend fun bar()
|
||||||
|
|
||||||
|
|||||||
+3
@@ -1,3 +1,6 @@
|
|||||||
interface B
|
interface B
|
||||||
|
|
||||||
typealias C = B
|
typealias C = B
|
||||||
|
|
||||||
class D : C
|
class D : C
|
||||||
|
|
||||||
|
|||||||
+4
@@ -1,4 +1,8 @@
|
|||||||
open class A
|
open class A
|
||||||
|
|
||||||
interface B<S, T : A>
|
interface B<S, T : A>
|
||||||
|
|
||||||
typealias C<T> = B<T, A>
|
typealias C<T> = B<T, A>
|
||||||
|
|
||||||
class D : C<A>
|
class D : C<A>
|
||||||
|
|
||||||
|
|||||||
+13
-6
@@ -1,9 +1,16 @@
|
|||||||
interface Some
|
interface Some
|
||||||
|
|
||||||
abstract class My<T : Some> {
|
abstract class My<T : Some> {
|
||||||
abstract val x: T
|
abstract val x: T
|
||||||
abstract val y: My<Some>.T
|
|
||||||
abstract val z: My<Some>.T
|
abstract val y: My<Some>.T
|
||||||
abstract fun foo(arg: T)
|
|
||||||
abstract class Some : My<Some>.T
|
abstract val z: My<Some>.T
|
||||||
open inner class T
|
|
||||||
|
abstract fun foo(arg: T)
|
||||||
|
|
||||||
|
abstract class Some : My<Some>.T
|
||||||
|
|
||||||
|
open inner class T
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+11
-4
@@ -1,11 +1,18 @@
|
|||||||
interface List<out T : Any> {
|
interface List<out T : Any> {
|
||||||
infix fun concat(other: List<T>): List<T>
|
infix fun concat(other: List<T>): List<T>
|
||||||
operator fun get(index: Int): T
|
|
||||||
|
operator fun get(index: Int): T
|
||||||
}
|
}
|
||||||
|
|
||||||
typealias StringList = List<out String>
|
typealias StringList = List<out String>
|
||||||
|
|
||||||
typealias AnyList = List<*>
|
typealias AnyList = List<*>
|
||||||
|
|
||||||
abstract class AbstractList<out T : Any> : List<T>
|
abstract class AbstractList<out T : Any> : List<T>
|
||||||
|
|
||||||
class SomeList : AbstractList<Int> {
|
class SomeList : AbstractList<Int> {
|
||||||
override infix fun concat(other: List<Int>): List<Int>
|
override infix fun concat(other: List<Int>): List<Int>
|
||||||
override operator fun get(index: Int): Int
|
|
||||||
|
override operator fun get(index: Int): Int
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+10
-4
@@ -1,6 +1,12 @@
|
|||||||
@Target(allowedTargets = [kotlin.annotation.AnnotationTarget.TYPE]) annotation class A1
|
@Target(allowedTargets = [kotlin.annotation.AnnotationTarget.TYPE])
|
||||||
@Target(allowedTargets = [kotlin.annotation.AnnotationTarget.TYPE]) annotation class A2 {
|
annotation class A1
|
||||||
constructor(value: String)
|
|
||||||
val value: String
|
@Target(allowedTargets = [kotlin.annotation.AnnotationTarget.TYPE])
|
||||||
|
annotation class A2 {
|
||||||
|
constructor(value: String)
|
||||||
|
|
||||||
|
val value: String
|
||||||
}
|
}
|
||||||
|
|
||||||
fun x(): @A1 @A2(value = "LIST") List<@A2(value = "INT") Int>
|
fun x(): @A1 @A2(value = "LIST") List<@A2(value = "INT") Int>
|
||||||
|
|
||||||
|
|||||||
+7
-3
@@ -1,5 +1,9 @@
|
|||||||
@Target(allowedTargets = [kotlin.annotation.AnnotationTarget.TYPE]) annotation class A {
|
@Target(allowedTargets = [kotlin.annotation.AnnotationTarget.TYPE])
|
||||||
constructor(value: Int)
|
annotation class A {
|
||||||
val value: Int
|
constructor(value: Int)
|
||||||
|
|
||||||
|
val value: Int
|
||||||
}
|
}
|
||||||
|
|
||||||
fun x(): @A(value = 3) Int
|
fun x(): @A(value = 3) Int
|
||||||
|
|
||||||
|
|||||||
+5
-1
@@ -1,3 +1,7 @@
|
|||||||
@Target(allowedTargets = [kotlin.annotation.AnnotationTarget.ANNOTATION_CLASS, kotlin.annotation.AnnotationTarget.VALUE_PARAMETER, kotlin.annotation.AnnotationTarget.TYPE]) annotation class base
|
@Target(allowedTargets = [kotlin.annotation.AnnotationTarget.ANNOTATION_CLASS, kotlin.annotation.AnnotationTarget.VALUE_PARAMETER, kotlin.annotation.AnnotationTarget.TYPE])
|
||||||
|
annotation class base
|
||||||
|
|
||||||
fun foo1(vararg ints: Int)
|
fun foo1(vararg ints: Int)
|
||||||
|
|
||||||
fun foo2(@base vararg ints: @base Int)
|
fun foo2(@base vararg ints: @base Int)
|
||||||
|
|
||||||
|
|||||||
+5
-1
@@ -1,3 +1,7 @@
|
|||||||
@Target(allowedTargets = [kotlin.annotation.AnnotationTarget.ANNOTATION_CLASS, kotlin.annotation.AnnotationTarget.VALUE_PARAMETER, kotlin.annotation.AnnotationTarget.TYPE]) annotation class base
|
@Target(allowedTargets = [kotlin.annotation.AnnotationTarget.ANNOTATION_CLASS, kotlin.annotation.AnnotationTarget.VALUE_PARAMETER, kotlin.annotation.AnnotationTarget.TYPE])
|
||||||
|
annotation class base
|
||||||
|
|
||||||
fun foo1(vararg ints: Int)
|
fun foo1(vararg ints: Int)
|
||||||
|
|
||||||
fun foo2(@base vararg ints: Int)
|
fun foo2(@base vararg ints: Int)
|
||||||
|
|
||||||
|
|||||||
+3
@@ -1,3 +1,6 @@
|
|||||||
interface A
|
interface A
|
||||||
|
|
||||||
interface B
|
interface B
|
||||||
|
|
||||||
class C<T : A & B>
|
class C<T : A & B>
|
||||||
|
|
||||||
|
|||||||
analysis/analysis-api/testData/components/symbolDeclarationRenderer/renderDeclaration/where.rendered
Vendored
+3
@@ -1,3 +1,6 @@
|
|||||||
interface A
|
interface A
|
||||||
|
|
||||||
interface B
|
interface B
|
||||||
|
|
||||||
class C<T : A> where T : B
|
class C<T : A> where T : B
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user