QuickFix for DANGLING_FUNCTION_LITERAL_ARGUMENT_SUSPECTED

This commit is contained in:
Wojciech Lopata
2013-02-20 11:09:44 +01:00
parent 881de132f7
commit 58a8c0ed08
7 changed files with 109 additions and 0 deletions
@@ -73,6 +73,14 @@ public class JetPsiFactory {
return property.getNode().findChildByType(JetTokens.COLON);
}
@NotNull
public static PsiElement createSemicolon(Project project) {
JetProperty property = createProperty(project, "val x: Int;");
PsiElement semicolon = property.findElementAt(10);
assert semicolon != null;
return semicolon;
}
public static PsiElement createWhiteSpace(Project project) {
return createWhiteSpace(project, " ");
}