scala.tools.nsc.transform.patmat.MatchApproximation.MatchApproximator.TreeMakersToProps
conservative
object conservative extends TreeMakerToProp
- Source
- MatchAnalysis.scala
- Alphabetic
- By Inheritance
- conservative
- TreeMakerToProp
- Function1
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
andThen[A](g: (MatchApproximator.Prop) ⇒ A): (MatchApproximator.TreeMaker) ⇒ A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
def
apply(tm: MatchApproximator.TreeMaker): MatchApproximator.Prop
apply itself must render a faithful representation of the TreeMaker
apply itself must render a faithful representation of the TreeMaker
Concretely, True must only be used to represent a TreeMaker that is sure to match and that does not do any computation at all e.g., doCSE relies on apply itself being sound in this sense (since it drops TreeMakers that are approximated to True -- scala/bug#6077)
handleUnknown may be customized by the caller to approximate further
TODO: don't ignore outer-checks
- Definition Classes
- TreeMakerToProp → Function1
-
def
compose[A](g: (A) ⇒ MatchApproximator.TreeMaker): (A) ⇒ MatchApproximator.Prop
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
def
handleUnknown(tm: MatchApproximator.TreeMaker): MatchApproximator.False.type
- Definition Classes
- conservative → TreeMakerToProp
-
def
toString(): String
- Definition Classes
- Function1 → AnyRef → Any
-
def
updateSubstitution(subst: MatchApproximator.Substitution): Unit
- Definition Classes
- TreeMakerToProp
The Scala compiler and reflection APIs.