Minor code editings
This commit is contained in:
@@ -38,6 +38,7 @@ public class JetMultiDeclarationEntry extends JetNamedDeclarationNotStubbed impl
|
|||||||
return TypeRefHelpersPackage.getTypeRef(this);
|
return TypeRefHelpersPackage.getTypeRef(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
@Nullable
|
@Nullable
|
||||||
public JetTypeReference setTypeRef(@Nullable JetTypeReference typeRef) {
|
public JetTypeReference setTypeRef(@Nullable JetTypeReference typeRef) {
|
||||||
return TypeRefHelpersPackage.setTypeRef(this, getNameIdentifier(), typeRef);
|
return TypeRefHelpersPackage.setTypeRef(this, getNameIdentifier(), typeRef);
|
||||||
|
|||||||
@@ -149,6 +149,7 @@ public class JetProperty extends JetTypeParameterListOwnerStub<PsiJetPropertyStu
|
|||||||
return TypeRefHelpersPackage.getTypeRef(this);
|
return TypeRefHelpersPackage.getTypeRef(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
@Nullable
|
@Nullable
|
||||||
public JetTypeReference setTypeRef(@Nullable JetTypeReference typeRef) {
|
public JetTypeReference setTypeRef(@Nullable JetTypeReference typeRef) {
|
||||||
return TypeRefHelpersPackage.setTypeRef(this, getNameIdentifier(), typeRef);
|
return TypeRefHelpersPackage.setTypeRef(this, getNameIdentifier(), typeRef);
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ import com.intellij.util.PlatformIcons;
|
|||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.jet.lang.descriptors.FunctionDescriptor;
|
import org.jetbrains.jet.lang.descriptors.FunctionDescriptor;
|
||||||
import org.jetbrains.jet.lang.psi.JetNamedFunction;
|
import org.jetbrains.jet.lang.psi.JetNamedFunction;
|
||||||
|
import org.jetbrains.jet.lang.psi.JetParameterList;
|
||||||
import org.jetbrains.jet.lang.psi.JetPsiFactory;
|
import org.jetbrains.jet.lang.psi.JetPsiFactory;
|
||||||
import org.jetbrains.jet.lang.psi.JetTypeReference;
|
import org.jetbrains.jet.lang.psi.JetTypeReference;
|
||||||
import org.jetbrains.jet.plugin.JetBundle;
|
import org.jetbrains.jet.plugin.JetBundle;
|
||||||
@@ -143,8 +144,8 @@ public class JetChangeFunctionSignatureAction implements QuestionAction {
|
|||||||
ShortenReferences.INSTANCE$.process(newTypeRef);
|
ShortenReferences.INSTANCE$.process(newTypeRef);
|
||||||
}
|
}
|
||||||
|
|
||||||
function.getValueParameterList().replace(patternFunction.getValueParameterList());
|
JetParameterList newParameterList = (JetParameterList) function.getValueParameterList().replace(patternFunction.getValueParameterList());
|
||||||
ShortenReferences.INSTANCE$.process(function.getValueParameterList());
|
ShortenReferences.INSTANCE$.process(newParameterList);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user