remove PARAMETER highlight on top of INSTANCE_PROPERTY for primary constructor parameters

This commit is contained in:
Dmitry Jemerov
2016-05-25 13:31:36 +02:00
parent b51637d49f
commit e9cefd9ece
3 changed files with 7 additions and 4 deletions
@@ -56,7 +56,10 @@ internal class VariablesHighlightingVisitor(holder: AnnotationHolder, bindingCon
}
override fun visitParameter(parameter: KtParameter) {
visitVariableDeclaration(parameter)
val propertyDescriptor = bindingContext.get(BindingContext.PRIMARY_CONSTRUCTOR_PARAMETER, parameter)
if (propertyDescriptor == null) {
visitVariableDeclaration(parameter)
}
super.visitParameter(parameter)
}