[VISUALIZER] Change result of psi render according to new test data
This commit is contained in:
committed by
TeamCityServer
parent
3e66d12bef
commit
4259ad2d84
@@ -1,9 +1,36 @@
|
||||
// FIR_IGNORE
|
||||
//constructor annotation/Target(vararg annotation/AnnotationTarget)
|
||||
//│ enum class annotation/AnnotationTarget: Enum<annotation/AnnotationTarget>
|
||||
//│ │ enum entry annotation/AnnotationTarget.ANNOTATION_CLASS
|
||||
//│ │ │
|
||||
@Target(AnnotationTarget.ANNOTATION_CLASS) annotation class base
|
||||
//│
|
||||
@Target(
|
||||
// enum class annotation/AnnotationTarget: Enum<annotation/AnnotationTarget>
|
||||
// │ enum entry annotation/AnnotationTarget.CLASS
|
||||
// │ │
|
||||
AnnotationTarget.CLASS,
|
||||
// enum class annotation/AnnotationTarget: Enum<annotation/AnnotationTarget>
|
||||
// │ enum entry annotation/AnnotationTarget.PROPERTY
|
||||
// │ │
|
||||
AnnotationTarget.PROPERTY,
|
||||
// enum class annotation/AnnotationTarget: Enum<annotation/AnnotationTarget>
|
||||
// │ enum entry annotation/AnnotationTarget.LOCAL_VARIABLE
|
||||
// │ │
|
||||
AnnotationTarget.LOCAL_VARIABLE,
|
||||
// enum class annotation/AnnotationTarget: Enum<annotation/AnnotationTarget>
|
||||
// │ enum entry annotation/AnnotationTarget.VALUE_PARAMETER
|
||||
// │ │
|
||||
AnnotationTarget.VALUE_PARAMETER,
|
||||
// enum class annotation/AnnotationTarget: Enum<annotation/AnnotationTarget>
|
||||
// │ enum entry annotation/AnnotationTarget.CONSTRUCTOR
|
||||
// │ │
|
||||
AnnotationTarget.CONSTRUCTOR,
|
||||
// enum class annotation/AnnotationTarget: Enum<annotation/AnnotationTarget>
|
||||
// │ enum entry annotation/AnnotationTarget.FUNCTION
|
||||
// │ │
|
||||
AnnotationTarget.FUNCTION,
|
||||
// enum class annotation/AnnotationTarget: Enum<annotation/AnnotationTarget>
|
||||
// │ enum entry annotation/AnnotationTarget.TYPE
|
||||
// │ │
|
||||
AnnotationTarget.TYPE
|
||||
) annotation class base
|
||||
|
||||
//constructor base()
|
||||
//│
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
// FIR_IGNORE
|
||||
// Unit
|
||||
// │ fun ((T) -> Unit).invoke(T): Unit
|
||||
// │ │
|
||||
fun <T> simpleRun(f: (T) -> Unit): Unit = f()
|
||||
// T fun (() -> T).invoke(): T
|
||||
// │ │
|
||||
fun <T> simpleRun(f: () -> T): T = f()
|
||||
|
||||
// collections/List<T>
|
||||
// │
|
||||
|
||||
@@ -2,8 +2,10 @@
|
||||
//constructor annotation/Target(vararg annotation/AnnotationTarget)
|
||||
//│ enum class annotation/AnnotationTarget: Enum<annotation/AnnotationTarget>
|
||||
//│ │ enum entry annotation/AnnotationTarget.EXPRESSION
|
||||
//│ │ │
|
||||
@Target(AnnotationTarget.EXPRESSION)
|
||||
//│ │ │ enum class annotation/AnnotationTarget: Enum<annotation/AnnotationTarget>
|
||||
//│ │ │ │ enum entry annotation/AnnotationTarget.LOCAL_VARIABLE
|
||||
//│ │ │ │ │
|
||||
@Target(AnnotationTarget.EXPRESSION, AnnotationTarget.LOCAL_VARIABLE)
|
||||
//constructor annotation/Retention(annotation/AnnotationRetention = ...)
|
||||
//│ enum class annotation/AnnotationRetention: Enum<annotation/AnnotationRetention>
|
||||
//│ │ enum entry annotation/AnnotationRetention.SOURCE
|
||||
@@ -40,14 +42,12 @@ fun foo(arg: Int): Int {
|
||||
return 42
|
||||
}
|
||||
|
||||
data class Two(x: Int, y: Int)
|
||||
data class Two(val x: Int, val y: Int)
|
||||
|
||||
fun bar(two: Two) {
|
||||
// constructor Ann()
|
||||
// │ [ERROR : component1() return type]
|
||||
// │ │ constructor Ann()
|
||||
// │ │ │ [ERROR : component2() return type]
|
||||
// │ │ │ │ bar.two: Two
|
||||
// │ constructor Ann()
|
||||
// │ Int │ Int bar.two: Two
|
||||
// │ │ │ │ │
|
||||
val (@Ann x, @Ann y) = two
|
||||
}
|
||||
|
||||
+11
-13
@@ -1,25 +1,23 @@
|
||||
// FIR_IGNORE
|
||||
// WITH_RUNTIME
|
||||
// Int
|
||||
// │ distance.x: Int
|
||||
// │ │ fun (Int).plus(Int): Int
|
||||
// │ │ │ distance.y: Int
|
||||
// │ │ │ │
|
||||
infix fun distance(x: Int, y: Int) = x + y
|
||||
// fun (Int).plus(Int): Int
|
||||
// Int │ distance.y: Int
|
||||
// │ │ │
|
||||
infix fun Int.distance(y: Int) = this + y
|
||||
|
||||
// [ERROR: unknown type]
|
||||
// Int
|
||||
// │ Int
|
||||
// │ │ [ERROR: not resolved]
|
||||
// │ │ fun Int.distance(Int): Int
|
||||
// │ │ │ Int
|
||||
// │ │ │ │
|
||||
fun test(): Int = 3 distance 4
|
||||
|
||||
// Int
|
||||
// │ fun distance(Int, Int): Int
|
||||
// │ │ Int
|
||||
// │ │ │ Int
|
||||
// │ │ │ │
|
||||
fun testRegular(): Int = distance(3, 4)
|
||||
// │ Int
|
||||
// │ │ fun Int.distance(Int): Int
|
||||
// │ │ │ Int
|
||||
// │ │ │ │
|
||||
fun testRegular(): Int = 3.distance(4)
|
||||
|
||||
class My(var x: Int) {
|
||||
// Int
|
||||
|
||||
@@ -19,10 +19,9 @@ fun withLocals(p: Int): Int {
|
||||
// │ fun (Int).plus(Int): Int
|
||||
// │ │ fun ((Int, Int) -> Int).invoke(Int, Int): Int
|
||||
// │ │ │ withLocals.sum.y: Int
|
||||
// │ │ │ │ fun (Int).plus(Int): Int
|
||||
// │ │ │ │ │ withLocals.sum.z: Int
|
||||
// │ │ │ │ │ │
|
||||
return x + f(y + z)
|
||||
// │ │ │ │ withLocals.sum.z: Int
|
||||
// │ │ │ │ │
|
||||
return x + f(y, z)
|
||||
}
|
||||
|
||||
// Int constructor Any()
|
||||
|
||||
Reference in New Issue
Block a user