class ImplicitComputation extends AnyRef
Prune ImplicitInfos down to either all the eligible ones or the best one.
- Source
- Implicits.scala
- Alphabetic
- By Inheritance
- ImplicitComputation
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ImplicitComputation(iss: Analyzer.Infoss, isLocalToCallsite: Boolean)
- iss
list of list of infos
- isLocalToCallsite
if true,
iss
represents in-scope implicits, which must respect the normal rules of shadowing. The head of the listiss
must represent implicits from the closest enclosing scope, and so on.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from ImplicitComputation to any2stringadd[ImplicitComputation] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (ImplicitComputation, B)
- Implicit
- This member is added by an implicit conversion from ImplicitComputation to ArrowAssoc[ImplicitComputation] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val eligible: collection.immutable.List[Analyzer.ImplicitInfo]
-
def
ensuring(cond: (ImplicitComputation) ⇒ Boolean, msg: ⇒ Any): ImplicitComputation
- Implicit
- This member is added by an implicit conversion from ImplicitComputation to Ensuring[ImplicitComputation] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (ImplicitComputation) ⇒ Boolean): ImplicitComputation
- Implicit
- This member is added by an implicit conversion from ImplicitComputation to Ensuring[ImplicitComputation] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): ImplicitComputation
- Implicit
- This member is added by an implicit conversion from ImplicitComputation to Ensuring[ImplicitComputation] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): ImplicitComputation
- Implicit
- This member is added by an implicit conversion from ImplicitComputation to Ensuring[ImplicitComputation] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
findAll(): LinkedHashMap[Analyzer.ImplicitInfo, Analyzer.SearchResult]
Returns all eligible ImplicitInfos and their SearchResults in a map.
-
def
findBest(): Analyzer.SearchResult
Returns the SearchResult of the best match.
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ImplicitComputation to StringFormat[ImplicitComputation] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
val
invalidImplicits: ListBuffer[Global.Symbol]
The implicits that are not valid because they come later in the source and lack an explicit result type.
The implicits that are not valid because they come later in the source and lack an explicit result type. Used for error diagnostics only.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
survives(info: Analyzer.ImplicitInfo, shadower: Analyzer.Shadower): Boolean
True if a given ImplicitInfo (already known isValid) is eligible.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
lazy val
wildPtNotInstantiable: Boolean
Faster implicit search.
Faster implicit search. Overall idea:
- prune aggressively
- find the most likely one
- if it matches, forget about all others it improves upon
-
def
→[B](y: B): (ImplicitComputation, B)
- Implicit
- This member is added by an implicit conversion from ImplicitComputation to ArrowAssoc[ImplicitComputation] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
-
object
DivergentImplicitRecovery
Preventing a divergent implicit from terminating implicit search, so that if there is a best candidate it can still be selected.
The Scala compiler and reflection APIs.