Suppress DELEGATE_USES_EXTENSION_PROPERTY_TYPE_PARAMETER in code

This commit is contained in:
Mikhail Glukhikh
2021-04-07 16:28:01 +03:00
parent fcbab45a88
commit 0c17ce2f44
3 changed files with 7 additions and 0 deletions
@@ -162,6 +162,8 @@ class DelegatedWrapperData<D : FirCallableDeclaration<*>>(
val containingClass: ConeClassLikeLookupTag,
val delegateField: FirField,
)
@Suppress("DELEGATE_USES_EXTENSION_PROPERTY_TYPE_PARAMETER")
var <D : FirCallableDeclaration<*>>
D.delegatedWrapperData: DelegatedWrapperData<D>? by FirDeclarationDataRegistry.data(DelegatedWrapperDataKey)
@@ -63,5 +63,6 @@ class ImportedFromObjectData<D : FirCallableDeclaration<*>>(
val original: D,
)
@Suppress("DELEGATE_USES_EXTENSION_PROPERTY_TYPE_PARAMETER")
var <D : FirCallableDeclaration<*>>
D.importedFromObjectData: ImportedFromObjectData<D>? by FirDeclarationDataRegistry.data(ImportedFromObjectClassIdKey)
@@ -79,10 +79,14 @@ inline fun <reified D : FirCallableDeclaration<*>> D.unwrapFakeOverrides(): D {
inline fun <reified S : FirCallableSymbol<*>> S.unwrapFakeOverrides(): S = fir.unwrapFakeOverrides().symbol as S
private object SubstitutedOverrideOriginalKey : FirDeclarationDataKey()
@Suppress("DELEGATE_USES_EXTENSION_PROPERTY_TYPE_PARAMETER")
var <D : FirCallableDeclaration<*>>
D.originalForSubstitutionOverrideAttr: D? by FirDeclarationDataRegistry.data(SubstitutedOverrideOriginalKey)
private object IntersectionOverrideOriginalKey : FirDeclarationDataKey()
@Suppress("DELEGATE_USES_EXTENSION_PROPERTY_TYPE_PARAMETER")
var <D : FirCallableDeclaration<*>>
D.originalForIntersectionOverrideAttr: D? by FirDeclarationDataRegistry.data(IntersectionOverrideOriginalKey)