Class

scala.reflect.api.Trees

CaseDefExtractor

Related Doc: package Trees

Permalink

abstract class CaseDefExtractor extends AnyRef

An extractor class to create and pattern match with syntax CaseDef(pat, guard, body). This AST node corresponds to the following Scala code:

case pat if guard => body

If the guard is not present, the guard is set to EmptyTree. If the body is not specified, the body is set to Literal(Constant(()))

Source
Trees.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CaseDefExtractor
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CaseDefExtractor()

    Permalink

Abstract Value Members

  1. abstract def apply(pat: Universe.Tree, guard: Universe.Tree, body: Universe.Tree): Universe.CaseDef

    Permalink
  2. abstract def unapply(caseDef: Universe.CaseDef): Option[(Universe.Tree, Universe.Tree, Universe.Tree)]

    Permalink