scala.tools.nsc.Global

specializeTypes

object specializeTypes extends SpecializeTypes

Source
Global.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. specializeTypes
  2. SpecializeTypes
  3. TypingTransformers
  4. InfoTransform
  5. Transform
  6. SubComponent
  7. AnyRef
  8. Any
Visibility
  1. Public
  2. All

Type Members

  1. class Duplicator extends Duplicators

  2. case class Forward (t: Symbol) extends SpecializedInfo with Product with Serializable

    Symbol is a method that should be forwarded to 't'

  3. case class Implementation (target: Symbol) extends SpecializedInfo with Product with Serializable

    Symbol is a specialized method whose body should be the target's method body.

  4. class ImplementationAdapter extends TreeSymSubstituter

    A tree symbol substituter that substitutes on type skolems.

  5. case class NormalizedMember (target: Symbol) extends SpecializedInfo with Product with Serializable

    Symbol is a normalized member obtained by specializing 'target'.

  6. case class Overload (sym: Symbol, env: TypeEnv) extends Product with Serializable

  7. class Phase extends Phase

    The phase defined by this transform

  8. case class SpecialOverload (original: Symbol, env: TypeEnv) extends SpecializedInfo with Product with Serializable

    Symbol is a special overloaded method of 'original', in the environment env.

  9. case class SpecialOverride (target: Symbol) extends SpecializedInfo with Product with Serializable

    Symbol is a specialized override paired with target'.

  10. class SpecializationPhase extends Phase

  11. class SpecializationTransformer extends Transformer

  12. case class SpecializedAccessor (target: Symbol) extends SpecializedInfo with Product with Serializable

    Symbol is a specialized accessor for the target' field.

  13. class SpecializedInfo extends AnyRef

    Attributes
    abstract
  14. case class SpecializedInnerClass (target: Symbol, env: TypeEnv) extends SpecializedInfo with Product with Serializable

    A specialized inner class that specializes original inner class target on a type parameter of the enclosing class, in the typeenv env.

  15. class StdPhase extends GlobalPhase

    A standard phase template

  16. type TypeEnv = Map[Symbol, Type]

    Definition Classes
    SpecializeTypes
  17. class TypingTransformer extends Transformer

    Attributes
    abstract

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. object TypeEnv extends AnyRef

  7. object UnifyError extends Throwable with ControlThrowable with Product with Serializable

  8. def addConcreteSpecMethod (m: Symbol): Unit

    Add method m to the set of symbols for which we need an implementation tree in the tree transformer.

    Add method m to the set of symbols for which we need an implementation tree in the tree transformer.

    Definition Classes
    SpecializeTypes
  9. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  10. def changesBaseClasses : Boolean

    This phase changes base classes.

    This phase changes base classes.

    Definition Classes
    SpecializeTypesInfoTransform
  11. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def concreteTypes (sym: Symbol): List[Type]

    Return the types sym' should be specialized at. This may be some of the primitive types or AnyRef. AnyRef means that a new type parameter T will be generated later, known to be a subtype of AnyRef (T <: AnyRef). These are in a meaningful order for stability purposes.

    Return the types sym' should be specialized at. This may be some of the primitive types or AnyRef. AnyRef means that a new type parameter T will be generated later, known to be a subtype of AnyRef (T <: AnyRef). These are in a meaningful order for stability purposes.

    Definition Classes
    SpecializeTypes
  13. def conflicting (env: TypeEnv): Boolean

    Is any type variable in env' conflicting with any if its type bounds, when type bindings in env' are taken into account?

    Is any type variable in env' conflicting with any if its type bounds, when type bindings in env' are taken into account?

    A conflicting type environment could still be satisfiable.

    Definition Classes
    SpecializeTypes
  14. def emptyEnv : TypeEnv

    Definition Classes
    SpecializeTypes
  15. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  16. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  17. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  18. def genericClass (cls: Symbol): Symbol

    Returns the generic class that was specialized to 'cls', or 'cls' itself if cls is not a specialized subclass.

    Returns the generic class that was specialized to 'cls', or 'cls' itself if cls is not a specialized subclass.

    Definition Classes
    SpecializeTypes
  19. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  20. val global : Global.this.type

    The global environment; overridden by instantiation in Global.

    The global environment; overridden by instantiation in Global.

    Definition Classes
    specializeTypesTypingTransformersSubComponent
  21. def hasSpecializedParams (clazz: Symbol): Boolean

    Has clazz' any type parameters that need be specialized?

    Has clazz' any type parameters that need be specialized?

    Definition Classes
    SpecializeTypes
  22. def hashCode (): Int

    SubComponent are added to a HashSet and two phases are the same if they have the same name

    SubComponent are added to a HashSet and two phases are the same if they have the same name

    Definition Classes
    SubComponent → AnyRef → Any
  23. def illegalSpecializedInheritance (clazz: Symbol): Boolean

    Definition Classes
    SpecializeTypes
  24. val internal : Boolean

    Internal flag to tell external from internal phases

    Internal flag to tell external from internal phases

    Definition Classes
    SubComponent
  25. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  26. def isNormalizedMember (m: Symbol): Boolean

    Definition Classes
    SpecializeTypes
  27. def keepsTypeParams : Boolean

    Definition Classes
    SpecializeTypesInfoTransform
  28. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  29. def newPhase (prev: Phase): StdPhase

    Just to mark uncheckable

    Just to mark uncheckable

    Definition Classes
    SpecializeTypesInfoTransformTransformSubComponent
  30. def newTransformer (unit: CompilationUnit): Transformer

    The transformer factory

    The transformer factory

    Attributes
    protected
    Definition Classes
    SpecializeTypesTransform
  31. def nonConflicting (env: TypeEnv): Boolean

    Definition Classes
    SpecializeTypes
  32. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  33. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  34. def originalClass (clazz: Symbol): Symbol

    Return the generic class corresponding to this specialized class.

    Return the generic class corresponding to this specialized class.

    Definition Classes
    SpecializeTypes
  35. def overload (sym: Symbol, env: TypeEnv): Option[Overload]

    Return the specialized overload of sym in the given env, if any.

    Return the specialized overload of sym in the given env, if any.

    Definition Classes
    SpecializeTypes
  36. def ownPhase : Phase

    The phase corresponding to this subcomponent in the current compiler run

    The phase corresponding to this subcomponent in the current compiler run

    Definition Classes
    SubComponent
  37. val phaseName : String

    the name of the phase:

    the name of the phase:

    Definition Classes
    SpecializeTypesSubComponent
  38. def phaseNewFlags : Long

    New flags defined by the phase which are not valid before

    New flags defined by the phase which are not valid before

    Definition Classes
    SubComponent
  39. def phaseNextFlags : Long

    New flags defined by the phase which are not valid until immediately after it

    New flags defined by the phase which are not valid until immediately after it

    Definition Classes
    SubComponent
  40. lazy val primitiveTypes : List[Type]

    Definition Classes
    SpecializeTypes
  41. def printSpecStats (): Unit

    Definition Classes
    SpecializeTypes
  42. def produceTypeParameters (syms: List[Symbol], nowner: Symbol, env: TypeEnv): List[Symbol]

    Produces the symbols from type parameters syms of the original owner, in the given type environment env.

    Produces the symbols from type parameters syms of the original owner, in the given type environment env. The new owner is nowner.

    Non-specialized type parameters are cloned into new ones. Type parameters specialized on AnyRef have preexisting symbols.

    For instance, a @specialized(AnyRef) T, will become T$sp <: AnyRef.

    Definition Classes
    SpecializeTypes
  43. val runsAfter : List[String]

    List of phase names, this phase should run after

    List of phase names, this phase should run after

    Definition Classes
    specializeTypesSubComponent
  44. val runsBefore : List[String]

    List of phase names, this phase should run before

    List of phase names, this phase should run before

    Definition Classes
    SubComponent
  45. val runsRightAfter : Some[String]

    Phase name this phase will attach itself to, not allowing any phase to come between it and the phase name declared

    Phase name this phase will attach itself to, not allowing any phase to come between it and the phase name declared

    Definition Classes
    specializeTypesSubComponent
  46. def satisfiable (env: TypeEnv, warnings: Boolean): Boolean

    Definition Classes
    SpecializeTypes
  47. def satisfiable (env: TypeEnv): Boolean

    The type environment is sound w.

    The type environment is sound w.r.t. to all type bounds or only soft conflicts appear. An environment is sound if all bindings are within the bounds of the given type variable. A soft conflict is a binding that does not fall within the bounds, but whose bounds contain type variables that are @specialized, (that could become satisfiable).

    Definition Classes
    SpecializeTypes
  48. def specializeCalls (unit: CompilationUnit): TypingTransformer { ... /* 5 definitions in type refinement */ }

    Definition Classes
    SpecializeTypes
  49. def specializeClass (clazz: Symbol, outerEnv: TypeEnv): List[Symbol]

    Specialize 'clazz', in the environment outerEnv.

    Specialize 'clazz', in the environment outerEnv. The outer environment contains bindings for specialized types of enclosing classes.

    A class C is specialized w.r.t to its own specialized type params stps, by specializing its members, and creating a new class for each combination of stps.

    Definition Classes
    SpecializeTypes
  50. val specializedClass : Map[(Symbol, TypeEnv), Symbol]

    For a given class and concrete type arguments, give its specialized class

    For a given class and concrete type arguments, give its specialized class

    Definition Classes
    SpecializeTypes
  51. def specializedParams (sym: Symbol): List[Symbol]

    Return specialized type parameters.

    Return specialized type parameters.

    Definition Classes
    SpecializeTypes
  52. val specializedType : TypeMap

    Definition Classes
    SpecializeTypes
  53. def specializedTypeVars (tpe: Type): Set[Symbol]

    Return the set of @specialized type variables mentioned by the given type.

    Return the set of @specialized type variables mentioned by the given type. It only counts type variables that appear:

    • naked
    • as arguments to type constructors in @specialized positions (arrays are considered as Array[@specialized T])
    Definition Classes
    SpecializeTypes
  54. def specializedTypeVars (sym: Symbol): Set[Symbol]

    Definition Classes
    SpecializeTypes
  55. def specializedTypeVars (tpes: List[Type]): Set[Symbol]

    Definition Classes
    SpecializeTypes
  56. def splitParams (tps: List[Symbol]): (List[Symbol], List[Symbol])

    Definition Classes
    SpecializeTypes
  57. def survivingArgs (sym: Symbol, args: List[Type]): List[Type]

    Given an original class symbol and a list of types its type parameters are instantiated at returns a list of type parameters that should remain in the TypeRef when instantiating a specialized type.

    Given an original class symbol and a list of types its type parameters are instantiated at returns a list of type parameters that should remain in the TypeRef when instantiating a specialized type.

    Definition Classes
    SpecializeTypes
  58. def survivingParams (params: List[Symbol], env: TypeEnv): List[Symbol]

    Type parameters that survive when specializing in the specified environment.

    Type parameters that survive when specializing in the specified environment.

    Definition Classes
    SpecializeTypes
  59. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  60. def toString (): String

    Definition Classes
    AnyRef → Any
  61. def transformInfo (sym: Symbol, tpe: Type): Type

    Type transformation.

    Type transformation. It is applied to all symbols, compiled or loaded. If it is a 'no-specialization' run, it is applied only to loaded symbols.

    Definition Classes
    SpecializeTypesInfoTransform
  62. val typeEnv : Map[Symbol, TypeEnv]

    Map class symbols to the type environments where they were created.

    Map class symbols to the type environments where they were created.

    Definition Classes
    SpecializeTypes
  63. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  64. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  65. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from SpecializeTypes

Inherited from TypingTransformers

Inherited from InfoTransform

Inherited from Transform

Inherited from SubComponent

Inherited from AnyRef

Inherited from Any