[FIR2IR] Rename getIrEnumEntry to getOrCreateIrEnumEntry
This is needed for sake of naming consistency.
This commit is contained in:
committed by
Space Team
parent
3a9567ad45
commit
5dbc0f12d1
@@ -341,7 +341,7 @@ class Fir2IrClassifierStorage(
|
||||
return enumEntryCache[enumEntry]
|
||||
}
|
||||
|
||||
fun getIrEnumEntry(
|
||||
fun getOrCreateIrEnumEntry(
|
||||
enumEntry: FirEnumEntry,
|
||||
irParent: IrClass,
|
||||
predefinedOrigin: IrDeclarationOrigin? = null,
|
||||
|
||||
@@ -487,7 +487,7 @@ class Fir2IrConverter(
|
||||
null
|
||||
}
|
||||
is FirEnumEntry -> {
|
||||
classifierStorage.getIrEnumEntry(declaration, parent as IrClass)
|
||||
classifierStorage.getOrCreateIrEnumEntry(declaration, parent as IrClass)
|
||||
}
|
||||
is FirAnonymousInitializer -> {
|
||||
declarationStorage.getOrCreateIrAnonymousInitializer(declaration, parent as IrClass)
|
||||
|
||||
+1
-1
@@ -841,7 +841,7 @@ class Fir2IrDeclarationStorage(
|
||||
val firProviderForSymbol = firVariableSymbol.moduleData.session.firProvider
|
||||
val containingFile = firProviderForSymbol.getFirCallableContainerFile(firVariableSymbol)
|
||||
|
||||
classifierStorage.getIrEnumEntry(
|
||||
classifierStorage.getOrCreateIrEnumEntry(
|
||||
firDeclaration,
|
||||
irParent = irParentClass,
|
||||
predefinedOrigin = if (containingFile != null) IrDeclarationOrigin.DEFINED else irParentClass.origin
|
||||
|
||||
@@ -166,7 +166,7 @@ class FirIrProvider(val components: Fir2IrComponents) : IrProvider {
|
||||
SymbolKind.CLASS_SYMBOL -> {
|
||||
classifierStorage.getOrCreateIrClass((firDeclaration as FirRegularClass).symbol)
|
||||
}
|
||||
SymbolKind.ENUM_ENTRY_SYMBOL -> classifierStorage.getIrEnumEntry(
|
||||
SymbolKind.ENUM_ENTRY_SYMBOL -> classifierStorage.getOrCreateIrEnumEntry(
|
||||
firDeclaration as FirEnumEntry, parent as IrClass
|
||||
)
|
||||
SymbolKind.CONSTRUCTOR_SYMBOL -> {
|
||||
|
||||
Reference in New Issue
Block a user