Cleanup: val can be parameter
This commit is contained in:
+1
-1
@@ -56,7 +56,7 @@ fun createClassStub(
|
||||
private class ClassClsStubBuilder(
|
||||
private val parentStub: StubElement<out PsiElement>,
|
||||
private val classProto: ProtoBuf.Class,
|
||||
private val nameResolver: NameResolver,
|
||||
nameResolver: NameResolver,
|
||||
private val classId: ClassId,
|
||||
source: SourceElement?,
|
||||
outerContext: ClsStubBuilderContext
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ import org.jetbrains.kotlin.name.Name
|
||||
|
||||
class DelegatedPropertyFieldDescriptor(
|
||||
project: Project,
|
||||
val objectRef: ObjectReference,
|
||||
objectRef: ObjectReference,
|
||||
val delegate: Field,
|
||||
val renderDelegatedProperty: Boolean
|
||||
) : FieldDescriptorImpl(project, objectRef, delegate) {
|
||||
|
||||
@@ -32,7 +32,7 @@ import org.jetbrains.kotlin.psi.psiUtil.getAssignmentByLHS
|
||||
import org.jetbrains.kotlin.psi.psiUtil.nonStaticOuterClasses
|
||||
|
||||
class MakeConstructorParameterPropertyFix(
|
||||
element: KtParameter, private val kotlinValVar: KotlinValVar, private val className: String?
|
||||
element: KtParameter, private val kotlinValVar: KotlinValVar, className: String?
|
||||
) : KotlinQuickFixAction<KtParameter>(element) {
|
||||
override fun getFamilyName() = "Make primary constructor parameter a property"
|
||||
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ import com.intellij.usageView.UsageInfo
|
||||
class KotlinWrapperForJavaUsageInfos(
|
||||
val javaChangeInfo: JavaChangeInfo,
|
||||
val javaUsageInfos: Array<UsageInfo>,
|
||||
val primaryMethod: PsiElement
|
||||
primaryMethod: PsiElement
|
||||
): UsageInfo(primaryMethod) {
|
||||
override fun hashCode() = javaChangeInfo.method.hashCode()
|
||||
|
||||
|
||||
+2
-2
@@ -42,8 +42,8 @@ import org.jetbrains.kotlin.types.KotlinType
|
||||
|
||||
class KotlinVariableInplaceIntroducer(
|
||||
val addedVariable: KtProperty,
|
||||
val originalExpression: KtExpression?,
|
||||
val occurrencesToReplace: Array<KtExpression>,
|
||||
originalExpression: KtExpression?,
|
||||
occurrencesToReplace: Array<KtExpression>,
|
||||
suggestedNames: Collection<String>,
|
||||
val isVar: Boolean,
|
||||
val doNotChangeVar: Boolean,
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ import java.awt.BorderLayout
|
||||
import javax.swing.*
|
||||
|
||||
internal class KotlinSelectNestedClassRefactoringDialog private constructor (
|
||||
private val project: Project,
|
||||
project: Project,
|
||||
private val nestedClass: KtClassOrObject,
|
||||
private val targetContainer: PsiElement?
|
||||
) : DialogWrapper(project, true) {
|
||||
|
||||
@@ -34,7 +34,7 @@ import org.jetbrains.kotlin.psi.*
|
||||
|
||||
class KotlinPullUpDialog(
|
||||
project: Project,
|
||||
private val classOrObject: KtClassOrObject,
|
||||
classOrObject: KtClassOrObject,
|
||||
superClasses: List<PsiNamedElement>,
|
||||
memberInfoStorage: KotlinMemberInfoStorage
|
||||
) : KotlinPullUpDialogBase(
|
||||
|
||||
Reference in New Issue
Block a user