dotty.tools.dotc.transform.PatternMatcher.Translator.TreeMakers

TypeTestTreeMaker

Related Docs: object TypeTestTreeMaker | package TreeMakers

case class TypeTestTreeMaker(afterTest: Symbol, testedBinder: Symbol, expectedTp: Type, nextBinderTp: Type)(pos: Position, extractorArgTypeTest: Boolean = false) extends CondTreeMaker with Product with Serializable

implements the run-time aspects of (§8.2) (typedPattern has already done the necessary type transformations)

Type patterns consist of types, type variables, and wildcards. A type pattern T is of one of the following forms:

Linear Supertypes
Serializable, Serializable, Product, Equals, CondTreeMaker, FunTreeMaker, TreeMaker, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TypeTestTreeMaker
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. CondTreeMaker
  7. FunTreeMaker
  8. TreeMaker
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TypeTestTreeMaker(afterTest: Symbol, testedBinder: Symbol, expectedTp: Type, nextBinderTp: Type)(pos: Position, extractorArgTypeTest: Boolean = false)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. val afterTest: Symbol

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def chainBefore(next: ast.tpd.Tree)(casegen: TreeMakers.Casegen): ast.tpd.Tree

    Definition Classes
    CondTreeMakerTreeMaker
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val cond: Result

    Definition Classes
    TypeTestTreeMakerCondTreeMaker
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. val expectedTp: Type

  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def impliesBinderNonNull(binder: Symbol): Boolean

  14. lazy val introducedRebindings: NoRebindings.type

    Definition Classes
    TypeTestTreeMakerCondTreeMakerTreeMaker
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. def needsOuterTest(patType: Type, selType: Type, currentOwner: Symbol): Boolean

  18. val nextBinder: TermSymbol

    Definition Classes
    TypeTestTreeMakerCondTreeMakerFunTreeMaker
  19. val nextBinderTp: Type

    Definition Classes
    TypeTestTreeMakerCondTreeMaker
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. def outerTestNeeded: Boolean

  23. val pos: Position

    Definition Classes
    TypeTestTreeMakerFunTreeMakerTreeMaker
  24. val prevBinder: Symbol

    Definition Classes
    TypeTestTreeMakerCondTreeMaker
  25. def rebindings: Rebindings

    captures the scope and the value of the bindings in patterns important *when* the substitution happens (can't accumulate and do at once after the full matcher has been constructed)

    captures the scope and the value of the bindings in patterns important *when* the substitution happens (can't accumulate and do at once after the full matcher has been constructed)

    Definition Classes
    TreeMaker
  26. def renderCondition(cs: TypeTestCondStrategy): Result

  27. val res: ast.tpd.Tree

    Definition Classes
    TypeTestTreeMakerCondTreeMaker
  28. def subPatternsAsRebindings: Rebindings

    The substitution that specifies the trees that compute the values of the subpattern binders.

    The substitution that specifies the trees that compute the values of the subpattern binders.

    Should not be used to perform actual substitution! Only used to reason symbolically about the values the subpattern binders are bound to. See TreeMakerToCond#updateSubstitution.

    Overridden in PreserveSubPatBinders to pretend it replaces the subpattern binders by subpattern refs (Even though we don't do so anymore -- see SI-5158, SI-5739 and SI-6070.)

    TODO: clean this up, would be nicer to have some higher-level way to compute the binders bound by this tree maker and the symbolic values that correspond to them

    Definition Classes
    TreeMaker
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  30. val testedBinder: Symbol

  31. def toString(): String

    Definition Classes
    TypeTestTreeMaker → AnyRef → Any
  32. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from CondTreeMaker

Inherited from FunTreeMaker

Inherited from TreeMaker

Inherited from AnyRef

Inherited from Any

Ungrouped