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