Evaluate parents of UAST elements lazily
Also add tests for UAST consistency in various cases
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
fun foo() {
|
||||
val x = if ("abc" != "def") 1 else 0
|
||||
}
|
||||
@@ -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)
|
||||
@@ -0,0 +1,5 @@
|
||||
public final class IfStatementKt {
|
||||
public static final fun foo() : void {
|
||||
var x: int = if ("abc" != "def") 1 else 0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user