Drop Annotations.getAllAnnotations

This commit is contained in:
Alexander Udalov
2018-08-16 12:18:36 +02:00
parent 83fbabd628
commit 87c0d56618
22 changed files with 51 additions and 109 deletions
@@ -109,10 +109,7 @@ class TypeTranslator(
}
private fun translateTypeAnnotations(annotations: Annotations): List<IrCall> =
annotations.getAllAnnotations().map {
// TODO filter out annotation targets
constantValueGenerator.generateAnnotationConstructorCall(it.annotation)
}
annotations.map(constantValueGenerator::generateAnnotationConstructorCall)
private fun translateTypeArguments(arguments: List<TypeProjection>) =
arguments.map {
@@ -121,4 +118,4 @@ class TypeTranslator(
else
translateType(it.type, it.projectionKind)
}
}
}