Migration to new backing field syntax
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ public abstract class InstructionWithNext(
|
||||
) : JetElementInstructionImpl(element, lexicalScope) {
|
||||
public var next: Instruction? = null
|
||||
set(value: Instruction?) {
|
||||
$next = outgoingEdgeTo(value)
|
||||
field = outgoingEdgeTo(value)
|
||||
}
|
||||
|
||||
override val nextInstructions: Collection<Instruction>
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ public abstract class AbstractJumpInstruction(
|
||||
) : JetElementInstructionImpl(element, lexicalScope), JumpInstruction {
|
||||
public var resolvedTarget: Instruction? = null
|
||||
set(value: Instruction?) {
|
||||
$resolvedTarget = outgoingEdgeTo(value)
|
||||
field = outgoingEdgeTo(value)
|
||||
}
|
||||
|
||||
protected abstract fun createCopy(newLabel: Label, lexicalScope: LexicalScope): AbstractJumpInstruction
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@ public class LocalFunctionDeclarationInstruction(
|
||||
) : InstructionWithNext(element, lexicalScope) {
|
||||
public var sink: SubroutineSinkInstruction? = null
|
||||
set(value: SubroutineSinkInstruction?) {
|
||||
$sink = outgoingEdgeTo(value) as SubroutineSinkInstruction?
|
||||
field = outgoingEdgeTo(value) as SubroutineSinkInstruction?
|
||||
}
|
||||
|
||||
override val nextInstructions: Collection<Instruction>
|
||||
|
||||
@@ -93,7 +93,7 @@ public abstract class JetCodeFragment(
|
||||
override fun getSuperType() = superType
|
||||
|
||||
override fun setSuperType(superType: PsiType?) {
|
||||
$superType = superType
|
||||
this.superType = superType
|
||||
}
|
||||
|
||||
override fun importsToString(): String {
|
||||
|
||||
@@ -11,14 +11,14 @@ class Customer : ChangeSupport() {
|
||||
// via KT-1299
|
||||
var name: String? = null
|
||||
set(value) {
|
||||
changeProperty("name", $name, value)
|
||||
$name = value
|
||||
changeProperty("name", field, value)
|
||||
field = value
|
||||
}
|
||||
|
||||
var city: String? = null
|
||||
set(value) {
|
||||
changeProperty("city", $city, value)
|
||||
$city = value
|
||||
changeProperty("city", field, value)
|
||||
field = value
|
||||
}
|
||||
|
||||
override fun toString() = "Customer($name, $city)"
|
||||
|
||||
Reference in New Issue
Block a user