[FIR] Don't keep ref to whole class proto

Store module name only
This commit is contained in:
Andrey Zinovyev
2021-05-20 17:43:01 +03:00
committed by teamcityserver
parent a121061df7
commit 617d99faac
6 changed files with 14 additions and 20 deletions
@@ -184,11 +184,9 @@ private object SourceElementKey : FirDeclarationDataKey()
var FirRegularClass.sourceElement: SourceElement? by FirDeclarationDataRegistry.data(SourceElementKey)
private object ClassProtoKey : FirDeclarationDataKey()
private object ModuleNameKey : FirDeclarationDataKey()
class FirClassProto(val classProto: ProtoBuf.Class, val nameResolver: NameResolver)
var FirRegularClass.proto: FirClassProto? by FirDeclarationDataRegistry.data(ClassProtoKey)
var FirRegularClass.moduleName: String? by FirDeclarationDataRegistry.data(ModuleNameKey)
var FirTypeAlias.sourceElement: SourceElement? by FirDeclarationDataRegistry.data(SourceElementKey)