[FIR] Don't keep ref to whole class proto
Store module name only
This commit is contained in:
committed by
teamcityserver
parent
a121061df7
commit
617d99faac
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user