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 {
|
||||
|
||||
Reference in New Issue
Block a user