hi, i'm trying to write a detekt extension; how d...
# detekt
v
hi, i'm trying to write a detekt extension; how do I know if a
KtLambdaExpression
is suspending in nature?
1
once you have a
org.jetbrains.kotlin.types.KotlinType
you can use the
org.jetbrains.kotlin.builtins.isSuspendFunctionTypeOrSubtype
extension on it
v
how do I get to a
KotlinType
from a
KtLambdaExpression
though? can you please provide a couple of pointers on that?
e
the page I linked to first links to examples in the detekt codebase
v
@ephemient, this worked, thanks