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