Packages

c

scala.reflect.api.Trees

TypeDefExtractor

abstract class TypeDefExtractor extends AnyRef

An extractor class to create and pattern match with syntax TypeDef(mods, name, tparams, rhs). This AST node corresponds to the following Scala code:

mods type name[tparams] = rhs

mods type name[tparams] >: lo <: hi

First usage illustrates TypeDefs representing type aliases and type parameters. Second usage illustrates TypeDefs representing abstract types, where lo and hi are both TypeBoundsTrees and Modifier.deferred is set in mods.

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

Abstract Value Members

  1. abstract def apply(mods: Universe.Modifiers, name: Universe.TypeName, tparams: List[Universe.TypeDef], rhs: Universe.Tree): Universe.TypeDef
  2. abstract def unapply(typeDef: Universe.TypeDef): Option[(Universe.Modifiers, Universe.TypeName, List[Universe.TypeDef], Universe.Tree)]

Deprecated Value Members

  1. def apply(sym: Universe.Symbol)(implicit token: Universe.CompatToken): Universe.TypeDef

    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use internal.typeDef instead

    See also

    InternalApi.typeDef

  2. def apply(sym: Universe.Symbol, rhs: Universe.Tree)(implicit token: Universe.CompatToken): Universe.TypeDef

    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use internal.typeDef instead

    See also

    InternalApi.typeDef