[IR] Reorder parameters in IrFactory#createField
This is to prepare for IrFactory auto-generation (KT-59308).
This commit is contained in:
committed by
Space Team
parent
90f6c53bf8
commit
0b7db067e6
+8
-7
@@ -101,15 +101,16 @@ internal class WasmPropertyReferenceLowering(val context: WasmBackendContext) :
|
||||
|
||||
val kPropertiesField =
|
||||
context.irFactory.createField(
|
||||
SYNTHETIC_OFFSET, SYNTHETIC_OFFSET,
|
||||
DECLARATION_ORIGIN_KPROPERTIES_FOR_DELEGATION,
|
||||
IrFieldSymbolImpl(),
|
||||
Name.identifier("\$KPROPERTIES"),
|
||||
kPropertiesFieldType,
|
||||
DescriptorVisibilities.PRIVATE,
|
||||
startOffset = SYNTHETIC_OFFSET,
|
||||
endOffset = SYNTHETIC_OFFSET,
|
||||
origin = DECLARATION_ORIGIN_KPROPERTIES_FOR_DELEGATION,
|
||||
name = Name.identifier("\$KPROPERTIES"),
|
||||
visibility = DescriptorVisibilities.PRIVATE,
|
||||
symbol = IrFieldSymbolImpl(),
|
||||
type = kPropertiesFieldType,
|
||||
isFinal = true,
|
||||
isExternal = false,
|
||||
isStatic = true,
|
||||
isExternal = false,
|
||||
).apply {
|
||||
parent = irFile
|
||||
}
|
||||
|
||||
+8
-8
@@ -172,16 +172,16 @@ class WasmSharedVariablesManager(val context: JsCommonBackendContext, val builtI
|
||||
val symbol = IrFieldSymbolImpl()
|
||||
val fieldName = Name.identifier("v")
|
||||
return context.irFactory.createField(
|
||||
UNDEFINED_OFFSET,
|
||||
UNDEFINED_OFFSET,
|
||||
IrDeclarationOrigin.FIELD_FOR_OUTER_THIS,
|
||||
symbol,
|
||||
fieldName,
|
||||
builtIns.anyNType,
|
||||
DescriptorVisibilities.PUBLIC,
|
||||
startOffset = UNDEFINED_OFFSET,
|
||||
endOffset = UNDEFINED_OFFSET,
|
||||
origin = IrDeclarationOrigin.FIELD_FOR_OUTER_THIS,
|
||||
name = fieldName,
|
||||
visibility = DescriptorVisibilities.PUBLIC,
|
||||
symbol = symbol,
|
||||
type = builtIns.anyNType,
|
||||
isFinal = false,
|
||||
isExternal = false,
|
||||
isStatic = false,
|
||||
isExternal = false,
|
||||
).also {
|
||||
it.parent = closureBoxClassDeclaration
|
||||
closureBoxClassDeclaration.declarations += it
|
||||
|
||||
Reference in New Issue
Block a user