https://kotlinlang.org logo
#detekt
Title
# detekt
g

gabrielfv

09/16/2020, 11:22 PM
Hello, how do I find out if a method call stands for an extension for nullable type. If i have the method
Type?.extForNullable()
I want to identify in a rule if this method is called, and not a version of it exclusive for a non-null instance of
Type
, or a more specialized version of it, like
SpecificType?.extForNullable()
, even if
SpecificType : Type
. I’m trying to visit dot-qualified expressions, since if I go for a safe expression I’m not calling a nullable version any way, but idk how to follow from here
g

gammax

09/17/2020, 4:15 PM
5 Views