[IR] Unbind construction methods of IrConstructorImpl from symbol.descriptor

This commit is contained in:
Mikhail Glukhikh
2020-05-18 16:53:32 +03:00
parent 262548fd5b
commit 7840adde12
6 changed files with 37 additions and 40 deletions
@@ -519,7 +519,7 @@ class Fir2IrDeclarationStorage(
val isPrimary = constructor.isPrimary
classifierStorage.preCacheTypeParameters(constructor)
val created = constructor.convertWithOffsets { startOffset, endOffset ->
symbolTable.declareConstructor(startOffset, endOffset, origin, descriptor) { symbol ->
symbolTable.declareConstructor(descriptor) { symbol ->
IrConstructorImpl(
startOffset, endOffset, origin, symbol,
Name.special("<init>"), constructor.visibility,