[JS IR BE] Fix @DoNotIntrinsify processing. Reuse it for compareTo

This commit is contained in:
Svyatoslav Kuzmich
2018-09-24 20:24:28 +03:00
parent 12a31637d1
commit 334c776b92
6 changed files with 15 additions and 13 deletions
@@ -336,6 +336,12 @@ fun IrAnnotationContainer.hasAnnotation(name: FqName) =
it.symbol.owner.parentAsClass.descriptor.fqNameSafe == name
}
fun IrAnnotationContainer.hasAnnotation(symbol: IrClassSymbol) =
annotations.any {
it.symbol.owner.parentAsClass.symbol == symbol
}
val IrConstructor.constructedClassType get() = (parent as IrClass).thisReceiver?.type!!
fun IrFunction.isFakeOverriddenFromAny(): Boolean {