[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
-8
@@ -167,16 +167,16 @@ internal class CStructVarClassGenerator(
|
||||
}
|
||||
|
||||
val cleanerField = irFactory.createField(
|
||||
SYNTHETIC_OFFSET,
|
||||
SYNTHETIC_OFFSET,
|
||||
IrDeclarationOrigin.DEFINED,
|
||||
IrFieldSymbolImpl(),
|
||||
Name.identifier("cleaner"),
|
||||
symbols.createCleaner.owner.returnType,
|
||||
DescriptorVisibilities.PRIVATE,
|
||||
startOffset = SYNTHETIC_OFFSET,
|
||||
endOffset = SYNTHETIC_OFFSET,
|
||||
origin = IrDeclarationOrigin.DEFINED,
|
||||
name = Name.identifier("cleaner"),
|
||||
visibility = DescriptorVisibilities.PRIVATE,
|
||||
symbol = IrFieldSymbolImpl(),
|
||||
type = symbols.createCleaner.owner.returnType,
|
||||
isFinal = true,
|
||||
isStatic = false,
|
||||
isExternal = false,
|
||||
isStatic = false
|
||||
).also { field ->
|
||||
field.parent = irClass
|
||||
field.initializer = irBuilder(irBuiltIns, field.symbol, SYNTHETIC_OFFSET, SYNTHETIC_OFFSET).run {
|
||||
|
||||
Reference in New Issue
Block a user