KT-1238 Completion of 'break' keyword: why does it add space char at the end?

KT-1237 Auto-completion of "return" keyword should not insert space after it when in a method returning Unit

 #KT-1237 fixed
 #KT-1238 fixed
This commit is contained in:
Nikolay Krasko
2012-04-09 11:43:46 +04:00
parent bd501f3676
commit 7de5f68629
13 changed files with 113 additions and 7 deletions
@@ -299,4 +299,12 @@ public class JetPsiUtil {
}
return null;
}
public static boolean isVoidType(@Nullable JetTypeReference typeReference) {
if (typeReference == null) {
return false;
}
return "Unit".equals(typeReference.getText());
}
}