
io.circe.generic.JsonCodec.scala Maven / Gradle / Ivy
package io.circe.generic
import io.circe.generic.util.macros.JsonCodecMacros
import macrocompat.bundle
import scala.language.experimental.macros
import scala.reflect.macros.blackbox
class JsonCodec extends scala.annotation.StaticAnnotation {
def macroTransform(annottees: Any*): Any = macro GenericJsonCodecMacros.jsonCodecAnnotationMacro
}
@bundle
private[generic] final class GenericJsonCodecMacros(val c: blackbox.Context) extends JsonCodecMacros {
import c.universe._
protected[this] def semiautoObj: Symbol = symbolOf[semiauto.type].asClass.module
def jsonCodecAnnotationMacro(annottees: Tree*): Tree = constructJsonCodec(annottees: _*)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy