[VISUALIZER] Render original symbols/descriptors in fir/psi

This commit is contained in:
Ivan Kylchik
2021-03-05 15:36:49 +03:00
committed by TeamCityServer
parent 869585870d
commit e19514f1dc
22 changed files with 243 additions and 156 deletions
@@ -4,7 +4,7 @@ abstract class A {
typealias TA = A
// fun TA.<init>(): TA /* = A */
// constructor A()
// │
class B : TA() {
// constructor A.Nested()
@@ -45,8 +45,9 @@ class SomeClass(multiplier: Int?) {
// Int
// │
get() contract [returnsNotNull()] = 1
// Int [ERROR: unknown type]
//
// EQ operator call
// Int [ERROR: unknown type]
// │ │ │
set(value) contract [returns() implies (value != null)] {
// SomeClass.<set-someInt>.value: Int
// │ [ERROR: not resolved]
@@ -1,7 +1,8 @@
// FIR_IGNORE
// new contracts syntax for simple functions
// [ERROR : MyClass]? [ERROR: unknown type] [ERROR: unknown type]
//
// EQ operator call
// [ERROR : MyClass]?[ERROR: unknown type] [ERROR: unknown type]
// │ │ │ │
fun test1(s: MyClass?) contract [returns() implies (s != null), returns() implies (s is MySubClass)] {
// [ERROR: not resolved]
// │
@@ -1,4 +1,4 @@
// T fun (() -> T).invoke(): T
// T fun (() -> R).invoke(): R
// │ │
fun <T> simpleRun(f: () -> T): T = f()
@@ -10,6 +10,6 @@ fun <T, R> List<T>.simpleMap(f: (T) -> R): R {
// Unit
// │ simpleWith.t: T
// │ │ fun T.invoke(): Unit
// │ │ fun P1.invoke(): R
// │ │ │
fun <T> simpleWith(t: T, f: T.() -> Unit): Unit = t.f()
@@ -2,6 +2,6 @@ interface B
typealias C = B
// C /* = B */
// B
// │
class D : C
@@ -4,6 +4,6 @@ interface B<S, T : A>
typealias C<T> = B<T, A>
// C<A> /* = B<A, A> */
// B<A, A>
// │
class D : C<A>