[FIR] Properly create class scopes while resolving of annotations arguments

This commit is contained in:
Dmitriy Novozhilov
2021-08-04 16:02:22 +03:00
committed by teamcityserver
parent 4c58954967
commit 60195114c1
7 changed files with 67 additions and 5 deletions
@@ -38,11 +38,13 @@ private class FirDeclarationsResolveTransformerForArgumentAnnotations(
override fun transformRegularClass(regularClass: FirRegularClass, data: ResolutionMode): FirStatement {
regularClass.transformAnnotations(this, data)
context.withContainingClass(regularClass) {
regularClass
.transformTypeParameters(transformer, data)
.transformSuperTypeRefs(transformer, data)
.transformDeclarations(transformer, data)
.transformCompanionObject(transformer, data)
context.withRegularClass(regularClass, components) {
regularClass
.transformTypeParameters(transformer, data)
.transformSuperTypeRefs(transformer, data)
.transformDeclarations(transformer, data)
.transformCompanionObject(transformer, data)
}
}
return regularClass
}