anorm.macros.Implicit.scala Maven / Gradle / Ivy
The newest version!
/*
* Copyright (C) from 2022 The Play Framework Contributors , 2011-2021 Lightbend Inc.
*/
package anorm.macros
import scala.reflect.api.Universe
final case class Implicit[Type <: Universe#TypeApi, Name <: Universe#NameApi, Tree <: Universe#TreeApi](
paramName: Name,
paramType: Type,
neededImplicit: Tree,
tpe: Type,
selfRef: Boolean
)
object Implicit {
object Unresolved {
def unapply[Type <: Universe#TypeApi, Name <: Universe#NameApi, Tree <: Universe#TreeApi](
impl: Implicit[Type, Name, Tree]
): Boolean = impl.neededImplicit.isEmpty
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy