[IR] Get rid of minor symbol.descriptor usages

This commit is contained in:
Mikhail Glukhikh
2020-05-18 18:25:09 +03:00
parent bf66929b5b
commit 724101cdd2
11 changed files with 14 additions and 17 deletions
@@ -283,7 +283,7 @@ abstract class AbstractIrTextTestCase : AbstractIrGeneratorTestCase() {
private fun IrSymbol.checkBinding(kind: String, irElement: IrElement) {
if (!isBound) {
error("${javaClass.simpleName} $descriptor is unbound @$kind ${irElement.render()}")
error("${javaClass.simpleName} descriptor is unbound @$kind ${irElement.render()}")
} else {
val irDeclaration = owner as? IrDeclaration
if (irDeclaration != null) {
@@ -297,7 +297,7 @@ abstract class AbstractIrTextTestCase : AbstractIrGeneratorTestCase() {
val otherSymbol = symbolForDeclaration.getOrPut(owner) { this }
if (this != otherSymbol) {
error("Multiple symbols for $descriptor @$kind ${irElement.render()}")
error("Multiple symbols for descriptor of @$kind ${irElement.render()}")
}
}