Trait

scala.reflect.macros.Internals.ContextInternalApi

TypingTransformApi

Related Doc: package ContextInternalApi

Permalink

trait TypingTransformApi extends TransformApi

Functions that are available during typingTransform.

Source
Internals.scala
See also

typingTransform

Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TypingTransformApi
  2. TransformApi
  3. AnyRef
  4. 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 atOwner[T](tree: blackbox.Context.Tree, owner: blackbox.Context.Symbol)(op: ⇒ T): T

    Permalink

    Temporarily pushes the given tree onto the recursion stack, and then calls atOwner(symbol)(trans).

  2. abstract def atOwner[T](owner: blackbox.Context.Symbol)(op: ⇒ T): T

    Permalink

    Temporarily pushes the given symbol onto the owner stack, creating a new local typer, invoke the given operation and then rollback the changes to the owner stack.

  3. abstract def currentOwner: blackbox.Context.Symbol

    Permalink

    Returns the symbol currently on the top of the owner stack.

    Returns the symbol currently on the top of the owner stack. If we're not inside any atOwner call, then macro application's context owner will be used.

  4. abstract def default(tree: blackbox.Context.Tree): blackbox.Context.Tree

    Permalink

    Calls the default transformer on the given tree.

    Calls the default transformer on the given tree. Default transformer = recur into tree's children and assemble the results.

    Definition Classes
    TransformApi
  5. abstract def recur(tree: blackbox.Context.Tree): blackbox.Context.Tree

    Permalink

    Calls the current transformer on the given tree.

    Calls the current transformer on the given tree. Current transformer = argument to the transform call.

    Definition Classes
    TransformApi
  6. abstract def typecheck(tree: blackbox.Context.Tree): blackbox.Context.Tree

    Permalink

    Typechecks the given tree using the local typer currently on the top of the owner stack.

    Typechecks the given tree using the local typer currently on the top of the owner stack. If we're not inside any atOwner call, then macro application's callsite typer will be used.