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