KT-1955 Half a file is red on incomplete code

#KT-1955 fixed
This commit is contained in:
Svetlana Isakova
2012-05-11 15:03:23 +04:00
parent 696df0eb9b
commit b1e5a0768c
2 changed files with 9 additions and 1 deletions
@@ -252,7 +252,7 @@ public interface Errors {
JetBlockExpression blockExpression = (JetBlockExpression)bodyExpression;
TextRange lastBracketRange = blockExpression.getLastBracketRange();
if (lastBracketRange == null) {
return markElement(element);
return Collections.emptyList();
}
return markRange(lastBracketRange);
}