All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tethys.derivation.impl.builder.ReaderDescriptionMacro.scala Maven / Gradle / Ivy

package tethys.derivation.impl.builder

import scala.quoted.{Expr, Quotes, Type}

import tethys.derivation.builder.{ReaderBuilder, ReaderDescription}

class ReaderDescriptionMacro(val quotes: Quotes) extends ReaderBuilderCommons {
  implicit val context: Quotes = quotes
  import context.reflect.*

  def simpleDescription[T <: Product : Type](builder: Expr[ReaderBuilder[T]]): Expr[ReaderDescription[T]] =
    convertReaderBuilder[T](builder)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy