Code cleanup: "can be constructor property" applied
(cherry picked from commit 6967711)
This commit is contained in:
committed by
Mikhail Glukhikh
parent
49aaeb5a38
commit
8d2389d15c
+1
-3
@@ -46,7 +46,7 @@ class KotlinInplacePropertyIntroducer(
|
||||
title: String,
|
||||
doNotChangeVar: Boolean,
|
||||
exprType: KotlinType?,
|
||||
extractionResult: ExtractionResult,
|
||||
private var extractionResult: ExtractionResult,
|
||||
private val availableTargets: List<ExtractionTarget>
|
||||
): KotlinInplaceVariableIntroducer<KtProperty>(
|
||||
property, editor, project, title, KtExpression.EMPTY_ARRAY, null, false, property, false, doNotChangeVar, exprType, false
|
||||
@@ -55,8 +55,6 @@ class KotlinInplacePropertyIntroducer(
|
||||
assert(availableTargets.isNotEmpty()) { "No targets available: ${property.getElementTextWithContext()}" }
|
||||
}
|
||||
|
||||
private var extractionResult = extractionResult
|
||||
|
||||
private var currentTarget: ExtractionTarget = extractionResult.config.generatorOptions.target
|
||||
set(value: ExtractionTarget) {
|
||||
if (value == currentTarget) return
|
||||
|
||||
Reference in New Issue
Block a user