Set up rendering for structure elements
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
-Render.kt
|
||||
test1(): Unit
|
||||
test2(String?): Unit
|
||||
test3(T, U): Unit
|
||||
test4(T): Unit
|
||||
test5(): String
|
||||
test6(): Comparable<String>
|
||||
extension1() on String: Unit
|
||||
extension2() on Comparable<T>: Unit
|
||||
a: Int
|
||||
a: String on Comparable<T>
|
||||
b: Any
|
||||
A1
|
||||
-A2
|
||||
a: Int
|
||||
b: [ERROR : Annotation is absent]
|
||||
-A3
|
||||
a: Int
|
||||
b: String
|
||||
-A4
|
||||
t: T?
|
||||
-A5
|
||||
Inner1
|
||||
Inner2
|
||||
-A6
|
||||
-<class object>
|
||||
test(): Unit
|
||||
-A7
|
||||
a: Int
|
||||
<class initializer>
|
||||
-Enum1 : Enum<Enum1>
|
||||
FIRST : Enum1
|
||||
SECOND : Enum1
|
||||
Trait
|
||||
Trait1 : Trait
|
||||
TestWithWhere
|
||||
testWithWhere(): Unit
|
||||
-WithDefaultArgs
|
||||
a: Int
|
||||
withDefaulArgs(Int = ..., String = ...): Unit
|
||||
@@ -0,0 +1,54 @@
|
||||
//package test.render
|
||||
|
||||
fun test1() {}
|
||||
fun test2(a: String?) {}
|
||||
fun <T, U> test3(t: T, u: U) {}
|
||||
fun <T: String> test4(t: T) {}
|
||||
fun test5(): String = "some"
|
||||
fun test6(): Comparable<String> = "some"
|
||||
|
||||
fun String.extension1() {}
|
||||
fun <T> Comparable<T>.extension2() {}
|
||||
|
||||
val a: Int = 1
|
||||
val <T> Comparable<T>.a = "String"
|
||||
val b = object {}
|
||||
|
||||
class A1
|
||||
class A2(val a: Int, var b = "some")
|
||||
class A3(val a: Int) {
|
||||
var b = "some"
|
||||
}
|
||||
class A4<T: Any>(val t: T?)
|
||||
class A5 {
|
||||
class Inner1
|
||||
inner class Inner2
|
||||
}
|
||||
class A6 {
|
||||
class object {
|
||||
fun test() {}
|
||||
}
|
||||
}
|
||||
class A7 {
|
||||
val a: Int
|
||||
|
||||
{
|
||||
a = 1
|
||||
}
|
||||
}
|
||||
|
||||
enum class Enum1 {
|
||||
FIRST
|
||||
SECOND
|
||||
}
|
||||
|
||||
trait Trait
|
||||
trait Trait1: Trait
|
||||
|
||||
class TestWithWhere<T> where T: Any?
|
||||
fun <T> testWithWhere() where T: String {}
|
||||
|
||||
class WithDefaultArgs(val a: Int = 1, b: String = "str")
|
||||
fun withDefaulArgs(a: Int = 1, b: String = "str") {}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
-SeveralClasses.kt
|
||||
A (<root>)
|
||||
B (<root>)
|
||||
Some (<root>)
|
||||
Other (<root>)
|
||||
A
|
||||
B
|
||||
Some : B, A
|
||||
Other : A
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
-Simple.kt
|
||||
-Test (<root>)
|
||||
str:kotlin.String
|
||||
some:kotlin.Int
|
||||
foo():kotlin.Int
|
||||
other():kotlin.Unit
|
||||
-Test
|
||||
str: String
|
||||
some: Int
|
||||
foo(): Int
|
||||
other(): Unit
|
||||
|
||||
Reference in New Issue
Block a user