Uast: KotlinIDERenderLogTest for running UAST tests with ULC

In case of result difference the `-ide`-suffixed testdata is used.
Actually the difference in results is more likely to be a bug
but currently we are fixating at least some behaviour to protect from
 unexpected regressions in Ultra Light Classes.

`object Local` were removed because there is no local objects in actual
 Kotlin syntax
This commit is contained in:
Nicolay Mitropolsky
2019-11-28 12:49:05 +03:00
parent 99eab5a058
commit 54285d328f
57 changed files with 1602 additions and 78 deletions
@@ -0,0 +1,26 @@
public class SimpleScript {
public final fun getBarOrNull(@org.jetbrains.annotations.NotNull flag: boolean) : SimpleScript.Bar {
return if (flag) <init>(42) else null
}
public static final fun main(@null strings: java.lang.String[]) : void = UastEmptyExpression
public fun SimpleScript() {
println("Hello World!")
getBarOrNull(true)
println("Goodbye World!")
}
public static final class Bar {
@org.jetbrains.annotations.NotNull private final var b: int = 0
@org.jetbrains.annotations.NotNull private final var a: int
public final fun getB() : int = UastEmptyExpression
public final fun getAPlusB() : int {
return a + b
}
public final fun getA() : int = UastEmptyExpression
public fun Bar(@org.jetbrains.annotations.NotNull a: int) = UastEmptyExpression
public static final class Baz {
public final fun doSomething() : void {
}
public fun Baz() = UastEmptyExpression
}
}
}