override fun produce()

in sample/experiments-compiler/experiment-enums-compiler/kotlin/src/main/kotlin/com/uber/crumb/sample/experimentenumscompiler/ExperimentsCompiler.kt [163:175]


  override fun produce(context: CrumbContext,
      type: TypeElement,
      annotations: Collection<AnnotationMirror>): ProducerMetadata {
    if (type.kind != ENUM) {
      context.processingEnv
          .messager
          .printMessage(ERROR,
              "@${Experiments::class.java.simpleName} is only applicable on enums when producing!",
              type)
      return emptyMap<String, String>() to emptySet()
    }
    return mapOf(METADATA_KEY to type.qualifiedName.toString()) to setOf(type)
  }