File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ interface IrDeclaration : IrStatement {
31
31
val declarationKind: IrDeclarationKind
32
32
val origin: IrDeclarationOrigin
33
33
34
- val parent: IrDeclarationParent
34
+ var parent: IrDeclarationParent
35
35
36
36
override fun <D > transform (transformer : IrElementTransformer <D >, data : D ): IrStatement =
37
37
accept(transformer, data) as IrStatement
Original file line number Diff line number Diff line change @@ -49,6 +49,6 @@ class PatchDeclarationParentsVisitor : IrElementVisitorVoid {
49
49
}
50
50
51
51
private fun patchParent (declaration : IrDeclaration ) {
52
- ( declaration as IrDeclarationBase ) .parent = declarationParentsStack.peekFirst()
52
+ declaration.parent = declarationParentsStack.peekFirst()
53
53
}
54
54
}
You can’t perform that action at this time.
0 commit comments