unions

fun Iterable<Pair<Set<ProtocolName>, CodeGenerator>>.unions(): CodeGenerator

Combines code generators for different protocols into one generator that can handle all protocols.