remove PARAMETER highlight on top of INSTANCE_PROPERTY for primary constructor parameters
This commit is contained in:
+4
-1
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user