Refactoring: moved capturing in closure check to call resolver extension

This commit is contained in:
Svetlana Isakova
2014-12-26 18:16:33 +03:00
parent bc060dd145
commit 509a8adae5
6 changed files with 84 additions and 55 deletions
@@ -102,8 +102,7 @@ class VariablesHighlightingVisitor extends AfterAnalysisHighlightingVisitor {
String msg = ((VariableDescriptor) descriptor).isVar()
? "Wrapped into a reference object to be modified when captured in a closure"
: "Value captured in a closure";
holder.createInfoAnnotation(elementToHighlight, msg).setTextAttributes(
JetHighlightingColors.WRAPPED_INTO_REF);
holder.createInfoAnnotation(elementToHighlight, msg).setTextAttributes(JetHighlightingColors.WRAPPED_INTO_REF);
}
if (descriptor instanceof LocalVariableDescriptor) {