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

io.udash.macros.RestMacros.scala Maven / Gradle / Ivy

There is a newer version: 0.13.0
Show newest version
package io.udash.macros

import com.avsystem.commons.macros.AbstractMacroCommons

import scala.reflect.macros.blackbox

class RestMacros(val ctx: blackbox.Context) extends AbstractMacroCommons(ctx) {

  import c.universe._

  def UdashRestPkg: Tree = q"_root_.io.udash.rest"

  def materializeImplMetadata[Real: c.WeakTypeTag]: Tree =
    q"$CommonsPkg.rpc.RpcMetadata.materializeForApi[$UdashRestPkg.raw.RestMetadata, ${weakTypeOf[Real]}]"

  def materializeImplOpenApiMetadata[Real: c.WeakTypeTag]: Tree =
    q"$CommonsPkg.rpc.RpcMetadata.materializeForApi[$UdashRestPkg.openapi.OpenApiMetadata, ${weakTypeOf[Real]}]"
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy