Skip to content

contextSensitiveResolutionStatus

The context-sensitive resolution status of the KtSimpleNameExpression: whether the name is already resolved through context-sensitive resolution, and whether a redundant explicit qualifier or import could be removed in favor of it.

The information is available even when the -Xcontext-sensitive-resolution feature is not enabled.

Example

enum class Foo { BAR }

fun usage(): Foo {
    return Foo.BAR // the 'Foo.' qualifier can be removed -> KaContextSensitiveResolutionStatus.QualifierCanBeRemoved
}

See also