Packages

c

scala.reflect.api.Internals

ReferenceToBoxedExtractor

abstract class ReferenceToBoxedExtractor extends AnyRef

An extractor class to create and pattern match with syntax ReferenceToBoxed(ident). This AST node does not have direct correspondence to Scala code, and is emitted by macros to reference capture vars directly without going through elem.

For example:

var x = ... fun { x }

Will emit:

Ident(x)

Which gets transformed to:

Select(Ident(x), "elem")

If ReferenceToBoxed were used instead of Ident, no transformation would be performed.

Source
Internals.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReferenceToBoxedExtractor
  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. Protected

Instance Constructors

  1. new ReferenceToBoxedExtractor()

Abstract Value Members

  1. abstract def apply(ident: Universe.Ident): Universe.ReferenceToBoxed
  2. abstract def unapply(referenceToBoxed: Universe.ReferenceToBoxed): Option[Universe.Ident]