[JS IR BE] Initial support for mudule wrapper generation

This commit is contained in:
Svyatoslav Kuzmich
2019-01-31 19:04:37 +03:00
parent d8b1d09566
commit 0ff23544fc
42 changed files with 628 additions and 148 deletions
@@ -379,6 +379,11 @@ tailrec fun IrElement.getPackageFragment(): IrPackageFragment? {
}
}
fun IrAnnotationContainer.getAnnotation(name: FqName) =
annotations.find {
it.symbol.owner.parentAsClass.descriptor.fqNameSafe == name
}
fun IrAnnotationContainer.hasAnnotation(name: FqName) =
annotations.any {
it.symbol.owner.parentAsClass.descriptor.fqNameSafe == name