IR: introduce IrAttributeContainer

This is useful to store data that must be kept when the element is
transformed, such as names of local/anonymous classes and
EnclosingMethod values on JVM which are computed before any lowerings.

For now, this is implemented very conservatively: the only field
`attributeOwnerId` which can be used in BackendContext implementation as
a key in the map
This commit is contained in:
Alexander Udalov
2019-06-18 16:28:40 +02:00
parent d399144b80
commit 529efff8cb
10 changed files with 40 additions and 7 deletions
@@ -330,6 +330,7 @@ class LocalDeclarationsLowering(
).also {
it.fillArguments2(expression, newCallee)
it.copyTypeArgumentsFrom(expression)
it.copyAttributes(expression)
}
}