Trait

scala.reflect.macros.Universe

RunContextApi

Related Doc: package Universe

Permalink

trait RunContextApi extends AnyRef

Compilation run uniquely identifies current invocation of the compiler (e.g. can be used to implement per-run caches for macros) and provides access to units of work of the invocation (currently processed unit of work and the list of all units).

Annotations
@deprecated
Deprecated

(Since version 2.11.0) c.enclosingTree-style APIs are now deprecated; consult the scaladoc for more information

Source
Universe.scala
See also

scala.reflect.macros.Enclosures

Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RunContextApi
  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

Abstract Value Members

  1. abstract def currentUnit: CompilationUnit

    Permalink

    Currently processed unit of work (a real or a virtual file).

    Currently processed unit of work (a real or a virtual file).

    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) c.enclosingTree-style APIs are now deprecated; consult the scaladoc for more information

  2. abstract def units: Iterator[CompilationUnit]

    Permalink

    All units of work comprising this compilation run.

    All units of work comprising this compilation run.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) c.enclosingTree-style APIs are now deprecated; consult the scaladoc for more information