Renamed methods so that tests for parsing do not fail

This commit is contained in:
Valentin Kipyatkov
2015-05-10 22:11:15 +03:00
parent 37ab41ac52
commit 3b7bb81141
3 changed files with 5 additions and 5 deletions
@@ -79,7 +79,7 @@ public class JetClass extends JetTypeParameterListOwnerStub<KotlinClassStub> imp
}
@NotNull
public JetPrimaryConstructor getOrCreatePrimaryConstructor() {
public JetPrimaryConstructor createPrimaryConstructorIfAbsent() {
JetPrimaryConstructor constructor = getPrimaryConstructor();
if (constructor != null) return constructor;
PsiElement anchor = getTypeParameterList();
@@ -89,8 +89,8 @@ public class JetClass extends JetTypeParameterListOwnerStub<KotlinClassStub> imp
}
@NotNull
public JetParameterList getOrCreatePrimaryConstructorParameterList() {
JetPrimaryConstructor constructor = getOrCreatePrimaryConstructor();
public JetParameterList createPrimaryConstructorParameterListIfAbsent() {
JetPrimaryConstructor constructor = createPrimaryConstructorIfAbsent();
JetParameterList parameterList = constructor.getValueParameterList();
if (parameterList != null) return parameterList;
return (JetParameterList) constructor.add(new JetPsiFactory(getProject()).createParameterList("()"));