buildMap

fun buildMap(builder: DeclarationIrBuilder, function: IrFunction, tags: List<Pair<String, String>>, mapType: IrType, annotationName: String): IrExpression?(source)

Builds the tags as a Map<String, Any> expression typed as mapType: emptyMap() when there are none, else mapOf(Pair(k, v), …) (later entries win, giving function tags priority over class-level ones). Returns null — after reporting against annotationName — when the required stdlib symbols cannot be resolved.