[IR] create IrScript, infrastructure for it and update visitors
This commit is contained in:
committed by
romanart
parent
f13e05de7d
commit
14510c1da3
+6
@@ -53,6 +53,12 @@ class PropertiesLowering(
|
||||
return declaration
|
||||
}
|
||||
|
||||
override fun visitScript(declaration: IrScript): IrStatement {
|
||||
declaration.transformChildrenVoid(this)
|
||||
declaration.transformDeclarationsFlat { lowerProperty(it, ClassKind.CLASS) }
|
||||
return declaration
|
||||
}
|
||||
|
||||
private fun lowerProperty(declaration: IrDeclaration, kind: ClassKind): List<IrDeclaration>? =
|
||||
if (declaration is IrProperty)
|
||||
if (skipExternalProperties && declaration.isEffectivelyExternal()) listOf(declaration) else {
|
||||
|
||||
Reference in New Issue
Block a user