Intention "Convert to expression body"

This commit is contained in:
Valentin Kipyatkov
2014-01-22 19:52:58 +04:00
parent d01ff28212
commit 020ea99220
32 changed files with 391 additions and 7 deletions
@@ -95,13 +95,6 @@ public class JetPsiFactory {
return comma;
}
@NotNull
public static PsiElement createEQ(Project project) {
PsiElement eq = createFunction(project, "fun foo() = foo").getEqualsToken();
assert eq != null;
return eq;
}
@NotNull
public static PsiElement createColon(Project project) {
JetProperty property = createProperty(project, "val x: Int");
@@ -110,6 +103,13 @@ public class JetPsiFactory {
return colon;
}
@NotNull
public static PsiElement createEQ(Project project) {
PsiElement eq = createFunction(project, "fun foo() = foo").getEqualsToken();
assert eq != null;
return eq;
}
@NotNull
public static PsiElement createSemicolon(Project project) {
JetProperty property = createProperty(project, "val x: Int;");