IR BE common: IrField.isFakeOverride
This commit is contained in:
+3
-2
@@ -680,9 +680,10 @@ abstract class AbstractSuspendFunctionsLowering<C : CommonBackendContext>(val co
|
|||||||
name,
|
name,
|
||||||
type,
|
type,
|
||||||
Visibilities.PRIVATE,
|
Visibilities.PRIVATE,
|
||||||
!isMutable,
|
isFinal = !isMutable,
|
||||||
isExternal = false,
|
isExternal = false,
|
||||||
isStatic = false
|
isStatic = false,
|
||||||
|
isFakeOverride = false
|
||||||
).also {
|
).also {
|
||||||
descriptor.bind(it)
|
descriptor.bind(it)
|
||||||
it.parent = this
|
it.parent = this
|
||||||
|
|||||||
+2
-1
@@ -662,7 +662,8 @@ class LocalDeclarationsLowering(
|
|||||||
visibility,
|
visibility,
|
||||||
isFinal = true,
|
isFinal = true,
|
||||||
isExternal = false,
|
isExternal = false,
|
||||||
isStatic = false
|
isStatic = false,
|
||||||
|
isFakeOverride = false
|
||||||
).also {
|
).also {
|
||||||
descriptor.bind(it)
|
descriptor.bind(it)
|
||||||
it.parent = parent
|
it.parent = parent
|
||||||
|
|||||||
+2
-1
@@ -43,7 +43,8 @@ fun IrFieldBuilder.buildField(): IrField {
|
|||||||
return IrFieldImpl(
|
return IrFieldImpl(
|
||||||
startOffset, endOffset, origin,
|
startOffset, endOffset, origin,
|
||||||
IrFieldSymbolImpl(wrappedDescriptor),
|
IrFieldSymbolImpl(wrappedDescriptor),
|
||||||
name, type, visibility, isFinal, isExternal, isStatic
|
name, type, visibility, isFinal, isExternal, isStatic,
|
||||||
|
origin == IrDeclarationOrigin.FAKE_OVERRIDE
|
||||||
).also {
|
).also {
|
||||||
wrappedDescriptor.bind(it)
|
wrappedDescriptor.bind(it)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user