Files
kotlin-fork/plugins/uast-kotlin/testData/AnnotatedExpressions.render.txt
T
Jinseong Jeon 291cd842b9 UAST Kotlin: update test data
Addition of directive IGNORE_FIR alters synthetic local variable names.
2021-05-05 14:22:40 +02:00

31 lines
743 B
Plaintext
Vendored

public final class AnnotatedExpressionsKt {
public static final fun foo() : void {
foo()
@kotlin.Suppress var a: int = 1
@kotlin.Suppress var b: int = 2
b = a
if (a > 2) a else b
var c: int = elvis {
var varae5075f4: int = a
if (varae5075f4 != null) varae5075f4 else b
}
}
public static final fun annotatedSwitch(@org.jetbrains.annotations.NotNull str: java.lang.String) : java.lang.Integer {
return switch {
str.isBlank() -> {
yield null
}
str.isNotEmpty() != null -> {
yield null
}
-> {
yield 1
}
}
}
}