Add some additional information to psi renderer

1) Trim unused spaces in annotations
2) Rewrote fq name rendering
3) Added annotations to for loop variable
4) Added type arguments render along to type parameters in functions
This commit is contained in:
Ivan Cilcic
2019-08-23 11:46:53 +03:00
committed by Mikhail Glukhikh
parent 8fb2383845
commit fe328f8c7a
36 changed files with 284 additions and 223 deletions
@@ -1,23 +1,25 @@
// Int Int
// │ │
val p = 0
// Int
//
// Int
// │ Int
// │ │
fun foo() = 1
class Wrapper(val v: IntArray)
// test.a: IntArray
// │ Int
// │ │ fun (Int).plus(Int): Int
// │ │ │ test.a: IntArray
// │ │ │ │ val p: Int
// │ │ │ │ │ fun (Int).plus(Int): Int
// │ │ │ │ │ │ test.a: IntArray
// │ │ │ │ │ │ │ fun foo(): Int
// │ │ │ │ │ │ │ │ fun (Int).plus(Int): Int
// │ │ │ │ │ │ │ │ │ test.w: Wrapper
// │ │ │ │ │ │ │ │ │ │ val (Wrapper).v: IntArray
// │ │ │ │ │ │ │ │ │ │ │ Int
// │ │ │ │ │ │ │ │ │ │ │
// Int
// │ test.a: IntArray
// │ │ Int
// │ │ fun (Int).plus(Int): Int
// │ │ │ test.a: IntArray
// │ │ │ │ val p: Int
// │ │ │ │ │ fun (Int).plus(Int): Int
// │ │ │ │ │ │ test.a: IntArray
// │ │ │ │ │ │ │ fun foo(): Int
// │ │ │ │ │ │ │ │ fun (Int).plus(Int): Int
// │ │ │ │ │ │ │ │ │ test.w: Wrapper
// │ │ │ │ │ │ │ │ │ │ val (Wrapper).v: IntArray
// │ │ │ │ │ │ │ │ │ │ │ Int
// │ │ │ │ │ │ │ │ │ │ │ │ │
fun test(a: IntArray, w: Wrapper) = a[0] + a[p] + a[foo()] + w.v[0]