Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions core/shared/src/main/scala-3/zio/ServiceProxyVersionSpecific.scala
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@ private object ServiceProxyMacros {
def makeImpl[A: Type](service: Expr[ScopedRef[A]])(using Quotes): Expr[A] = {
import quotes.reflect.*

val debug = Expr.summon[Boolean].isDefined

def log(xs: Any*): Unit =
if (debug) {
println(xs.mkString(", "))
}

// TODO replace with `ValOrDefDef` https://github.com/lampepfl/dotty/pull/16974/
def nameAndReturnType(t: Tree): Option[(String, TypeTree)] =
t match {
Expand Down Expand Up @@ -87,12 +80,6 @@ private object ServiceProxyMacros {
}

tpe.typeSymbol.typeMembers.foreach { m =>
tpe.typeSymbol.tree match {
case TypeDef(_, rhs) =>
log(rhs.show)
case _ => ()
}
log(m, m.flags.show, m.tree.show(using Printer.TreeStructure))
if (m.flags.is(Flags.Deferred) && !m.flags.is(Flags.Param)) {
unsupported(s"Abstract type member detected: ${m.tree.show}")
}
Expand Down