QuickFix for UNCHECKED_CAST

This commit is contained in:
Wojciech Lopata
2013-02-19 22:46:06 +01:00
committed by Evgeny Gerashchenko
parent db99492b9c
commit 1f3739415a
9 changed files with 116 additions and 1 deletions
@@ -62,6 +62,13 @@ public class JetPsiFactory {
return property.getTypeRef();
}
@NotNull
public static PsiElement createStar(Project project) {
PsiElement star = createType(project, "List<*>").findElementAt(5);
assert star != null;
return star;
}
//the pair contains the first and the last elements of a range
public static Pair<PsiElement, PsiElement> createColonAndWhiteSpaces(Project project) {
JetProperty property = createProperty(project, "val x : Int");