Files
kotlin-fork/plugins/uast-kotlin/testData/AnnotatedExpressions.render.txt
T
Nicolay Mitropolsky b7e715045a Uast: skip KtWhenConditionWithExpression in UAST (KT-38521)
when building parents, because they are anyway ignored in converter
2020-05-06 15:31:19 +03: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 varae507364: int = a
if (varae507364 != null) varae507364 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
}
}
}
}