[IR] Add a new parameter to IrFactory#createPropertyWithLateBinding
This is to prepare for IrFactory auto-generation (KT-59308).
This commit is contained in:
committed by
Space Team
parent
8820867341
commit
b4335c86c8
@@ -164,9 +164,10 @@ interface IrFactory {
|
||||
isConst: Boolean,
|
||||
isLateinit: Boolean,
|
||||
isDelegated: Boolean,
|
||||
isExternal: Boolean,
|
||||
isExpect: Boolean,
|
||||
): IrProperty
|
||||
isExternal: Boolean = false,
|
||||
isExpect: Boolean = false,
|
||||
isFakeOverride: Boolean = origin == IrDeclarationOrigin.FAKE_OVERRIDE,
|
||||
): IrPropertyWithLateBinding
|
||||
|
||||
fun createTypeAlias(
|
||||
startOffset: Int,
|
||||
|
||||
@@ -201,10 +201,22 @@ abstract class AbstractIrFactoryImpl : IrFactory {
|
||||
isDelegated: Boolean,
|
||||
isExternal: Boolean,
|
||||
isExpect: Boolean,
|
||||
): IrProperty =
|
||||
isFakeOverride: Boolean,
|
||||
): IrPropertyWithLateBinding =
|
||||
IrPropertyWithLateBindingImpl(
|
||||
startOffset, endOffset, origin, name, visibility, modality,
|
||||
isVar, isConst, isLateinit, isDelegated, isExternal, isExpect,
|
||||
startOffset = startOffset,
|
||||
endOffset = endOffset,
|
||||
origin = origin,
|
||||
name = name,
|
||||
visibility = visibility,
|
||||
modality = modality,
|
||||
isVar = isVar,
|
||||
isConst = isConst,
|
||||
isLateinit = isLateinit,
|
||||
isDelegated = isDelegated,
|
||||
isExternal = isExternal,
|
||||
isExpect = isExpect,
|
||||
isFakeOverride = isFakeOverride,
|
||||
factory = this
|
||||
)
|
||||
|
||||
|
||||
+4
-2
@@ -302,8 +302,9 @@ class IrFactoryImplForJsIC(override val stageController: StageController) : Abst
|
||||
isLateinit: Boolean,
|
||||
isDelegated: Boolean,
|
||||
isExternal: Boolean,
|
||||
isExpect: Boolean
|
||||
): IrProperty {
|
||||
isExpect: Boolean,
|
||||
isFakeOverride: Boolean,
|
||||
): IrPropertyWithLateBinding {
|
||||
return super.createPropertyWithLateBinding(
|
||||
startOffset,
|
||||
endOffset,
|
||||
@@ -317,6 +318,7 @@ class IrFactoryImplForJsIC(override val stageController: StageController) : Abst
|
||||
isDelegated,
|
||||
isExternal,
|
||||
isExpect,
|
||||
isFakeOverride,
|
||||
).register()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user