[LC] avoid icon calculation in compiler
move calculation to the IDE icon provider ^KT-64282 fixed
This commit is contained in:
-8
@@ -13,9 +13,6 @@ import com.intellij.psi.impl.light.LightModifierList;
|
||||
import com.intellij.util.IncorrectOperationException;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.kotlin.idea.KotlinIconProviderService;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
// Based on com.intellij.psi.impl.light.LightVariableBuilder
|
||||
public class LightVariableBuilder extends LightElement implements PsiVariable, NavigationItem {
|
||||
@@ -96,9 +93,4 @@ public class LightVariableBuilder extends LightElement implements PsiVariable, N
|
||||
protected boolean isVisibilitySupported() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Icon getElementIcon(int flags) {
|
||||
return KotlinIconProviderService.getInstance().getLightVariableIcon(this, flags);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user