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
@@ -126,7 +126,7 @@ public object SuperClassNotInitialized : JetIntentionActionsFactory() {
val parameterNames = ArrayList<String>()
val typeRefsToShorten = ArrayList<JetTypeReference>()
if (!superParameters.isEmpty()) {
val parameterList = classDeclaration.getOrCreatePrimaryConstructorParameterList()
val parameterList = classDeclaration.createPrimaryConstructorParameterListIfAbsent()
val oldParameters = parameterList.getParameters()
val parametersToAdd = ArrayList<JetParameter>()
for (parameter in superParameters) {
@@ -249,7 +249,7 @@ public open class KotlinIntroduceParameterHandler(
val addedParameter = if (inplaceIsAvailable) {
runWriteAction {
val parameterList = targetParent.getValueParameterList()
?: (targetParent as JetClass).getOrCreatePrimaryConstructorParameterList()
?: (targetParent as JetClass).createPrimaryConstructorParameterListIfAbsent()
parameterList.addParameter(newParameter)
}
}