FIR2IR: IrField.isFakeOverride
This commit is contained in:
+2
-1
@@ -558,7 +558,8 @@ class Fir2IrDeclarationStorage(
|
|||||||
field.name, type, field.visibility,
|
field.name, type, field.visibility,
|
||||||
isFinal = field.modality == Modality.FINAL,
|
isFinal = field.modality == Modality.FINAL,
|
||||||
isExternal = false,
|
isExternal = false,
|
||||||
isStatic = field.isStatic
|
isStatic = field.isStatic,
|
||||||
|
isFakeOverride = false
|
||||||
).apply {
|
).apply {
|
||||||
descriptor.bind(this)
|
descriptor.bind(this)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -510,7 +510,8 @@ class Fir2IrVisitor(
|
|||||||
startOffset, endOffset, origin, symbol,
|
startOffset, endOffset, origin, symbol,
|
||||||
name, inferredType,
|
name, inferredType,
|
||||||
visibility, isFinal = isFinal, isExternal = false,
|
visibility, isFinal = isFinal, isExternal = false,
|
||||||
isStatic = property.isStatic || parent !is IrClass
|
isStatic = property.isStatic || parent !is IrClass,
|
||||||
|
isFakeOverride = origin == IrDeclarationOrigin.FAKE_OVERRIDE
|
||||||
)
|
)
|
||||||
}.setParentByParentStack().withParent {
|
}.setParentByParentStack().withParent {
|
||||||
declarationStorage.enterScope(descriptor)
|
declarationStorage.enterScope(descriptor)
|
||||||
|
|||||||
Reference in New Issue
Block a user