Evaluate parents of UAST elements lazily

Also add tests for UAST consistency in various cases
This commit is contained in:
Dmitry Jemerov
2017-09-12 17:58:27 +02:00
parent 91459bbd6a
commit 40daeb13d1
52 changed files with 281 additions and 205 deletions
+3
View File
@@ -0,0 +1,3 @@
fun foo() {
val x = if ("abc" != "def") 1 else 0
}
+12
View File
@@ -0,0 +1,12 @@
UFile (package = )
UClass (name = IfStatementKt)
UAnnotationMethod (name = foo)
UBlockExpression
UDeclarationsExpression
ULocalVariable (name = x)
UIfExpression
UBinaryExpression (operator = !=)
ULiteralExpression (value = "abc")
ULiteralExpression (value = "def")
ULiteralExpression (value = 1)
ULiteralExpression (value = 0)
+5
View File
@@ -0,0 +1,5 @@
public final class IfStatementKt {
public static final fun foo() : void {
var x: int = if ("abc" != "def") 1 else 0
}
}