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:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user