To be more specific about my problem, I tried to find occurrences of the
SomeEnum.name
property using
visitDotQualifiedExpression
. I found them, but I need to ensure that the .name expression belongs only to an
Еnum
. I then tried to verify this using:
val receiverKotlinTypeInfo: KotlinTypeInfo? =
bindingContext[BindingContext.EXPRESSION_TYPE_INFO, receiverExpression]
However, it returns null. I suppose I am doing something wrong at this stage. This is why I need more information about
BindingContext
or other related concepts.