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

com.softwaremill.macwire.internals.utils.scala Maven / Gradle / Ivy

package com.softwaremill.macwire.internals

import scala.quoted.*

def showTypeName[T: Type](using q: Quotes): String = showTypeName(using q)(q.reflect.TypeRepr.of[T])
def showTypeName(using q: Quotes)(t: q.reflect.TypeRepr): String = t.typeSymbol.name
def showExprShort(using q: Quotes)(e: Expr[_]): String =
  import q.reflect.*
  e.asTerm.show(using Printer.TreeShortCode)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy