Packages

c

scala.reflect.api.Trees

BlockExtractor

abstract class BlockExtractor extends AnyRef

An extractor class to create and pattern match with syntax Block(stats, expr). This AST node corresponds to the following Scala code:

{ stats; expr }

If the block is empty, the expr is set to Literal(Constant(())).

Source
Trees.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BlockExtractor
  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 BlockExtractor()

Abstract Value Members

  1. abstract def apply(stats: List[Universe.Tree], expr: Universe.Tree): Universe.Block
  2. abstract def unapply(block: Universe.Block): Option[(List[Universe.Tree], Universe.Tree)]