Files
kotlin-fork/plugins/uast-kotlin/testData/Constructors.render.txt
T
Nicolay Mitropolsky f4a7ecc1bb Uast: Fix for missing local variables in ctor-s bodies
similar to how it is done in `KotlinUBlockExpression`
2018-01-12 22:32:52 +03:00

82 lines
2.5 KiB
Plaintext
Vendored

public final class A {
@org.jetbrains.annotations.NotNull private final var str: java.lang.String
public final fun getStr() : java.lang.String = UastEmptyExpression
public fun A(@org.jetbrains.annotations.NotNull str: java.lang.String) = UastEmptyExpression
public fun A(@org.jetbrains.annotations.NotNull i: int) {
<init>(i.toString())
}
}
public final class AWithInit {
@org.jetbrains.annotations.NotNull private final var str: java.lang.String
public final fun getStr() : java.lang.String = UastEmptyExpression
public fun AWithInit(@org.jetbrains.annotations.NotNull str: java.lang.String) {
{
println()
}
}
public fun AWithInit(@org.jetbrains.annotations.NotNull i: int) {
<init>(i.toString())
}
}
public final class AWith2Init {
@org.jetbrains.annotations.NotNull private final var str: java.lang.String
public final fun getStr() : java.lang.String = UastEmptyExpression
public fun AWith2Init(@org.jetbrains.annotations.NotNull str: java.lang.String) {
{
println(1)
}
{
println(2)
}
}
public fun AWith2Init(@org.jetbrains.annotations.NotNull i: int) {
<init>(i.toString())
}
}
public final class AOnlyInit {
public fun AOnlyInit() {
{
println(1)
}
{
println(2)
}
}
}
public final class AWithSecondary {
@org.jetbrains.annotations.NotNull public var a: java.lang.String
public final fun getA() : java.lang.String = UastEmptyExpression
public final fun setA(@org.jetbrains.annotations.NotNull p: java.lang.String) : void = UastEmptyExpression
public fun AWithSecondary(@org.jetbrains.annotations.NotNull i: int) {
<init>()
a = i.toString()
}
public fun AWithSecondary(@org.jetbrains.annotations.NotNull s: java.lang.String) {
<init>()
a = s
}
}
public final class AWithSecondaryInit {
@org.jetbrains.annotations.NotNull public var a: java.lang.String
public final fun getA() : java.lang.String = UastEmptyExpression
public final fun setA(@org.jetbrains.annotations.NotNull p: java.lang.String) : void = UastEmptyExpression
public fun AWithSecondaryInit(@org.jetbrains.annotations.NotNull i: int) {
<init>()
{
println()
}
a = i.toString()
}
public fun AWithSecondaryInit(@org.jetbrains.annotations.NotNull s: java.lang.String) {
<init>()
a = s
var local: java.lang.String = s
local.toString()
}
}