ken_kentan
07/19/2023, 1:11 AMvisitCallExpression
with Type Resolution?
import timber.log.Timber
class DummyClass {
fun hello() {
try {
throw IllegalStateException("error")
} catch (e: Exception) {
// Any way to know this called wtf function belongs to Timber in visitCallExpression()?
<http://Timber.wtf|Timber.wtf>(e, "hello")
}
}
}
ken_kentan
07/19/2023, 1:12 AMval calleeExpression = expression.calleeExpression
if (calleeExpression is KtNameReferenceExpression) {
println(calleeExpression.getReferencedName())
}
jordan29.04.1197
07/19/2023, 9:56 PM