Scala Compiler2.12.21 < Back
 

# Packages

-  package root

  The Scala compiler and reflection APIs.

  The Scala compiler and reflection APIs.

  Definition Classes
    root
-  package scala
  Definition Classes
    root
-  package tools
  Definition Classes
    scala
-  package nsc
  Definition Classes
    tools
-  class Global extends SymbolTable with Closeable with CompilationUnits with Plugins with PhaseAssembly with Trees with Printers with DocComments with Positions with Reporting with Parsing
  Definition Classes
    nsc
- AbstractTypeRef
- AbstractTypeSymbol
- AliasTypeRef
- AliasTypeSymbol
- Alternative
- Alternative
- AlternativeApi
- AlternativeExtractor
- Annotatable
- Annotated
- Annotated
- AnnotatedApi
- AnnotatedExtractor
- AnnotatedType
- AnnotatedType
- AnnotatedTypeApi
- AnnotatedTypeExtractor
- AnnotationApi
- AnnotationChecker
- AnnotationExtractor
- AnnotationFilter
- AnnotationInfo
- AnnotationInfo
- AntiPolyType
- AppliedTypeTree
- AppliedTypeTree
- AppliedTypeTreeApi
- AppliedTypeTreeExtractor
- AppliedTypeVar
- Apply
- Apply
- ApplyApi
- ApplyDynamic
- ApplyExtractor
- ApplyImplicitView
- ApplyToImplicitArgs
- ApproximateDependentMap
- ArgsTypeRef
- ArrayAnnotArg
- ArrayAnnotArg
- ArrayArgumentApi
- ArrayArgumentExtractor
- ArrayValue
- AsSeenFromMap
- Assign
- Assign
- AssignApi
- AssignExtractor
- AssignOrNamedArg
- AssignOrNamedArg
- AssignOrNamedArgApi
- AssignOrNamedArgExtractor
- Attachable
- AutoApplicationAttachment
- BackquotedIdentifierAttachment
- BaseTypeSeq
- Bind
- Bind
- BindApi
- BindExtractor
- Block
- Block
- BlockApi
- BlockExtractor
- BooleanFlag
- BooleanFlag
- BoundedWildcardType
- BoundedWildcardType
- BoundedWildcardTypeApi
- BoundedWildcardTypeExtractor
- CannotHaveAttrs
- CaseDef
- CaseDef
- CaseDefApi
- CaseDefExtractor
- ChangeOwnerAttachment
- ChangeOwnerTraverser
- ChildSolidDescendantsCollector
- ClassDef
- ClassDef
- ClassDefApi
- ClassDefExtractor
- ClassInfoType
- ClassInfoType
- ClassInfoTypeApi
- ClassInfoTypeExtractor
- ClassMirror
- ClassSymbol
- ClassSymbolApi
- ClassUnwrapper
- ClassfileAnnotArg
- CodePrinter
- CollectTreeTraverser
- CollectTypeCollector
- CommonNames
- CommonOwnerMap
- CompactTreePrinter
- CompatApi
- CompatToken
- CompilationUnit
- CompilationUnitContextApi
- CompleteAnnotationInfo
- CompoundType
- CompoundType
- CompoundTypeApi
- CompoundTypeTree
- CompoundTypeTree
- CompoundTypeTreeApi
- CompoundTypeTreeExtractor
- CompoundTypeTreeOriginalAttachment
- ConsoleWriter
- Constant
- Constant
- ConstantApi
- ConstantExtractor
- ConstantType
- ConstantType
- ConstantTypeApi
- ConstantTypeExtractor
- ContainsCollector
- CyclicReference
- DefDef
- DefDef
- DefDefApi
- DefDefExtractor
- DefTree
- DefTreeApi
- DefaultPosAssigner
- DefinitionsApi
- DefinitionsClass
- DelambdafyTarget
- DocComment
- DocDef
- EmptyScope
- EmptyTree
- ErasedValueType
- ErasedValueType
- ErroneousAnnotation
- ErrorScope
- ErrorType
- ExistentialExtrapolation
- ExistentialType
- ExistentialType
- ExistentialTypeApi
- ExistentialTypeExtractor
- ExistentialTypeTree
- ExistentialTypeTree
- ExistentialTypeTreeApi
- ExistentialTypeTreeExtractor
- ExpansionLimitExceeded
- Expr
- Expr
- ExtraLazyAnnotationInfo
- FieldMirror
- FilterTreeTraverser
- FilterTypeCollector
- FindTreeTraverser
- FindTypeCollector
- FixedMirrorTreeCreator
- FixedMirrorTypeCreator
- Flag
- FlagAgnosticCompleter
- FlagAssigningCompleter
- FlagOps
- FlagValues
- ForEachTypeTraverser
- ForeachPartialTreeTraverser
- ForeachTreeTraverser
- FreeSymbol
- FreeTermSymbol
- FreeTermSymbolApi
- FreeTypeSymbol
- FreeTypeSymbolApi
- FreshNameExtractor
- Function
- Function
- FunctionApi
- FunctionExtractor
- GenPolyType
- GenericApply
- GenericApplyApi
- GlobalMirror
- GlobalPhase
- GlobalPlatform
- GlobalStats
- HKTypeVar
- Ident
- Ident
- IdentApi
- IdentExtractor
- If
- If
- IfApi
- IfExtractor
- ImplDef
- ImplDefApi
- Import
- Import
- ImportApi
- ImportExtractor
- ImportSelector
- ImportSelector
- ImportSelectorApi
- ImportSelectorExtractor
- ImportType
- ImportableAttachment
- Importer
- InfixAttachment
- InfoTransformer
- InjectDerivedValue
- InlineAnnotatedAttachment
- InlineCallsiteAttachment
- InstanceMirror
- InstantiateDependentMap
- InternalApi
- InternalTreeCopierOps
- JavaArgumentApi
- JavaKeywords
- JavaMethodType
- JustMethodReference
- KeepOnlyTypeConstraints
- Keywords
- Kind
- Kind
- KindErrors
- LabelDef
- LabelDef
- LabelDefApi
- LabelDefExtractor
- LazyAnnotationInfo
- LazyPolyType
- LazyTreeCopier
- LazyType
- Liftable
- Literal
- Literal
- LiteralAnnotArg
- LiteralAnnotArg
- LiteralApi
- LiteralArgumentApi
- LiteralArgumentExtractor
- LiteralExtractor
- Locator
- LookupAmbiguityWarning
- LookupAmbiguous
- LookupInaccessible
- LookupNotFound
- LookupSucceeded
- MacroCompatApi
- MacroInternalApi
- MalformedType
- MappedBaseTypeSeq
- Match
- Match
- MatchApi
- MatchExtractor
- MemberDef
- MemberDefApi
- MemberScopeApi
- MethodMirror
- MethodSymbol
- MethodSymbolApi
- MethodType
- MethodType
- MethodTypeApi
- MethodTypeExtractor
- MethodValue
- Mirror
- MissingAliasControl
- MissingTypeControl
- Modifiers
- Modifiers
- ModifiersApi
- ModifiersExtractor
- ModuleClassSymbol
- ModuleDef
- ModuleDef
- ModuleDefApi
- ModuleDefExtractor
- ModuleMirror
- ModuleSymbol
- ModuleSymbolApi
- ModuleTypeRef
- Name
- NameApi
- NameHasIsEmpty
- NameLookup
- NameOps
- NameTree
- NameTreeApi
- NamedType
- NamesApi
- NestedAnnotArg
- NestedAnnotArg
- NestedArgumentApi
- NestedArgumentExtractor
- New
- New
- NewApi
- NewExtractor
- NoArgsTypeRef
- NoCommonType
- NoCompilationUnit
- NoInlineCallsiteAttachment
- NoPrefix
- NoSymbol
- NoType
- NoWarnAttachment
- NonClassTypeRef
- NullaryMethodType
- NullaryMethodType
- NullaryMethodTypeApi
- NullaryMethodTypeExtractor
- OuterArgCanBeElided
- OverloadedType
- PackageClassInfoType
- PackageClassSymbol
- PackageDef
- PackageDef
- PackageDefApi
- PackageDefExtractor
- PackageObjectClassSymbol
- PackageTypeRef
- Parens
- PatVarDefAttachment
- PerRunParsing
- PerRunReporting
- PerRunReportingBase
- PlainAttachment
- PolyType
- PolyType
- PolyTypeApi
- PolyTypeExtractor
- PosAssigner
- PostfixAttachment
- ProperTypeKind
- QualTypeSymAttachment
- Quasiquote
- RawTreePrinter
- RecoverableCyclicReference
- RefTree
- RefTree
- RefTreeApi
- RefTreeExtractor
- ReferenceToBoxed
- ReferenceToBoxed
- ReferenceToBoxedApi
- ReferenceToBoxedExtractor
- RefinedType
- RefinedType
- RefinedType0
- RefinedTypeApi
- RefinedTypeExtractor
- RefinementClassSymbol
- RefinementTypeRef
- ReflectStats
- ReflectiveMirror
- ReificationSupportApi
- ReificationSupportImpl
- RepeatedType
- Return
- Return
- ReturnApi
- ReturnExtractor
- RewrappingTypeProxy
- RootSymbol
- Roots
- RootsBase
- Run
- RunContextApi
- RunParsing
- RunReporting
- RuntimeClassApi
- RuntimeMirror
- SAMFunction
- ScalaSigBytes
- Scope
- Scope
- ScopeApi
- ScopeEntry
- Select
- Select
- SelectApi
- SelectExtractor
- SelectFromArray
- SelectFromTypeTree
- SelectFromTypeTree
- SelectFromTypeTreeApi
- SelectFromTypeTreeExtractor
- SimpleTypeProxy
- SingleType
- SingleType
- SingleTypeApi
- SingleTypeExtractor
- SingletonType
- SingletonTypeApi
- SingletonTypeTree
- SingletonTypeTree
- SingletonTypeTreeApi
- SingletonTypeTreeExtractor
- StandardImporter
- StandardLiftableInstances
- StandardTypes
- StandardUnliftableInstances
- Star
- Star
- StarApi
- StarExtractor
- StaticallyAnnotatedType
- StrictTreeCopier
- StubClassSymbol
- StubSymbol
- StubTermSymbol
- SubType
- SubTypePair
- SubpatternsAttachment
- SubstMap
- SubstSymMap
- SubstThisMap
- SubstTypeMap
- SubstWildcardMap
- Super
- Super
- SuperApi
- SuperExtractor
- SuperType
- SuperType
- SuperTypeApi
- SuperTypeExtractor
- SymLoader
- SymTree
- SymTreeApi
- Symbol
- SymbolApi
- SymbolContextApiImpl
- SymbolNames
- SymbolOps
- SymbolTableInternal
- Template
- Template
- TemplateApi
- TemplateExtractor
- TemplateMirror
- TermName
- TermName
- TermNameApi
- TermNameExtractor
- TermNames
- TermNamesApi
- TermSymbol
- TermSymbolApi
- TermTree
- TermTreeApi
- This
- This
- ThisApi
- ThisExtractor
- ThisSubstituter
- ThisType
- ThisType
- ThisTypeApi
- ThisTypeExtractor
- Throw
- Throw
- ThrowApi
- ThrowExtractor
- ThrownException
- Transformer
- Traverser
- Tree
- TreeApi
- TreeContextApiImpl
- TreeCopier
- TreeCopierOps
- TreeGen
- TreePrinter
- TreeReplacer
- TreeStackTraverser
- TreeSubstituter
- TreeSymSubstTraverser
- TreeSymSubstituter
- TreeTypeSubstituter
- Try
- Try
- TryApi
- TryExtractor
- TypTree
- TypTreeApi
- Type
- TypeApi
- TypeApiImpl
- TypeApply
- TypeApply
- TypeApplyApi
- TypeApplyExtractor
- TypeBounds
- TypeBounds
- TypeBoundsApi
- TypeBoundsExtractor
- TypeBoundsTree
- TypeBoundsTree
- TypeBoundsTreeApi
- TypeBoundsTreeExtractor
- TypeCollector
- TypeConKind
- TypeConKind
- TypeConstraint
- TypeDef
- TypeDef
- TypeDefApi
- TypeDefExtractor
- TypeError
- TypeMap
- TypeMapTreeSubstituter
- TypeName
- TypeName
- TypeNameApi
- TypeNameExtractor
- TypeNames
- TypeNamesApi
- TypeParamVarargsAttachment
- TypeRef
- TypeRef
- TypeRefApi
- TypeRefExtractor
- TypeSkolem
- TypeSymbol
- TypeSymbolApi
- TypeTag
- TypeTag
- TypeTraverser
- TypeTraverserWithResult
- TypeTree
- TypeTree
- TypeTreeApi
- TypeTreeExtractor
- TypeTreeWithDeferredRefCheck
- TypeUnwrapper
- TypeVar
- TypeVar
- Typed
- Typed
- TypedApi
- TypedExtractor
- TypedLocator
- UnApply
- UnApply
- UnApplyApi
- UnApplyExtractor
- UnderConstructionTransformer
- UndoLog
- UniqueConstantType
- UniqueErasedValueType
- UniqueSingleType
- UniqueSuperType
- UniqueThisType
- UniqueType
- UniqueTypeBounds
- Unliftable
- UnmappableAnnotation
- UntouchableTypeVar
- UseCase
- UseInvokeSpecial
- ValDef
- ValDef
- ValDefApi
- ValDefExtractor
- ValOrDefDef
- ValOrDefDef
- ValOrDefDefApi
- ValidateException
- ValidatingPosAssigner
- ValueClassDefinitions
- VarianceValidator
- WeakTypeTag
- WeakTypeTag
- WildcardType
- abstractTypesToBounds
- adaptToNewRunMap
- async
- cleanup
- constfold
- constructors
- definitions
- delambdafy
- dropIllegalStarTypes
- dropSingletonType
- duplicateAndResetPos
- erasure
- explicitOuter
- extensionMethods
- fields
- flatten
- gen
- genBCode
- icodes
- inferKind
- lambdaLift
- mixer
- nme
- noPrint
- noSelfType
- nodePrinters
- noopTransformer
- overridingPairs
- patmat
- pendingSuperCall
- perRunCaches
- pickler
- postErasure
- refChecks
- scalaPrimitives
- specializeTypes
- statistics
- superAccessors
- tailCalls
- terminal
- tpnme
- traceSymbols
- treeBrowsers
- treeChecker
- treeInfo
- typeDebug
- typeDeconstruct
- typer
- uncurry
- unwrapToClass
- unwrapToStableClass
- unwrapWrapperTypes
- wildcardExtrapolation

o

scala.tools.nsc.Global

# specializeTypes 

###

#### object specializeTypes extends SpecializeTypes

Source
  Global.scala

Linear Supertypes
SpecializeTypes, TypingTransformers, InfoTransform, Transform, SubComponent, AnyRef, Any
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. specializeTypes
2. SpecializeTypes
3. TypingTransformers
4. InfoTransform
5. Transform
6. SubComponent
7. AnyRef
8. Any

1. Hide All
2. Show All

Visibility

1. Public
2. All

### Type Members

1.  type TypeEnv = Map[Global.Symbol, Global.Type]
   Definition Classes
     SpecializeTypes
2.  abstract class StdPhase extends GlobalPhase

   A standard phase template

   A standard phase template

   Definition Classes
     SubComponent
3.  class Phase extends InfoTransform.Phase
   Definition Classes
     InfoTransform
4.  case class Abstract(t: Global.Symbol) extends SpecializedInfo with Product with Serializable

   Symbol is a specialized abstract method, either specialized or original.

   Symbol is a specialized abstract method, either specialized or original. The original `t` is abstract.

   Definition Classes
     SpecializeTypes
5.  class Duplicator extends Duplicators

   This duplicator additionally performs casts of expressions if that is allowed by the `casts` map.

   This duplicator additionally performs casts of expressions if that is allowed by the `casts` map.

   Definition Classes
     SpecializeTypes
6.  case class Forward(t: Global.Symbol) extends SpecializedInfo with Product with Serializable

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

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

   Definition Classes
     SpecializeTypes
7.  case class Implementation(target: Global.Symbol) extends SpecializedInfo with Product with Serializable

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

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

   Definition Classes
     SpecializeTypes
8.  class ImplementationAdapter extends Global.TreeSymSubstituter

   A tree symbol substituter that substitutes on type skolems.

   A tree symbol substituter that substitutes on type skolems. If a type parameter is a skolem, it looks for the original symbol in the 'from' and maps it to the corresponding new symbol. The new symbol should probably be a type skolem as well (not enforced).

   All private members are made protected in order to be accessible from specialized classes.

   Definition Classes
     SpecializeTypes
9.  case class NormalizedMember(target: Global.Symbol) extends SpecializedInfo with Product with Serializable

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

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

   Definition Classes
     SpecializeTypes
10.  case class Overload(sym: Global.Symbol, env: TypeEnv) extends Product with Serializable
    Definition Classes
      SpecializeTypes
11.  case class SpecialOverload(original: Global.Symbol, env: TypeEnv) extends SpecializedInfo with Product with Serializable

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

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

    Definition Classes
      SpecializeTypes
12.  case class SpecialOverride(target: Global.Symbol) extends SpecializedInfo with Product with Serializable

    Symbol is a specialized override paired with `target`.

    Symbol is a specialized override paired with `target`.

    Definition Classes
      SpecializeTypes
13.  case class SpecialSuperAccessor(t: Global.Symbol) extends SpecializedInfo with Product with Serializable

    Symbol is a special overload of the super accessor.

    Symbol is a special overload of the super accessor.

    Definition Classes
      SpecializeTypes
14.  class SpecializationDuplicator extends Duplicator

    Introduced to fix scala/bug#7343: Phase ordering problem between Duplicators and Specialization.

    Introduced to fix scala/bug#7343: Phase ordering problem between Duplicators and Specialization. brief explanation: specialization rewires class parents during info transformation, and the new info then guides the tree changes. But if a symbol is created during duplication, which runs after specialization, its info is not visited and thus the corresponding tree is not specialized. One manifestation is the following: ```object Test { class Parent[@specialized(Int) T]```

    def spec_method[@specialized(Int) T](t: T, expectedXSuper: String) = { class X extends Parent[T]() // even in the specialized variant, the local X class // doesn't extend Parent$mcI$sp, since its symbol has // been created after specialization and was not seen // by specialization's info transformer. ... } } ```We fix this by forcing duplication to take place before specialization.```

    Note: The constructors phase (which also uses duplication) comes after erasure and uses the post-erasure typer => we must protect it from the beforeSpecialization phase shifting.

    Definition Classes
      SpecializeTypes
15.  class SpecializationPhase extends Phase
    Definition Classes
      SpecializeTypes
16.  class SpecializationTransformer extends TypingTransformer
    Definition Classes
      SpecializeTypes
17.  case class SpecializedAccessor(target: Global.Symbol) extends SpecializedInfo with Product with Serializable

    Symbol is a specialized accessor for the `target` field.

    Symbol is a specialized accessor for the `target` field.

    Definition Classes
      SpecializeTypes
18.  abstract class SpecializedInfo extends AnyRef
    Definition Classes
      SpecializeTypes
19.  case class SpecializedInnerClass(target: Global.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`.

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

    Definition Classes
      SpecializeTypes
20.  abstract class ThicketTransformer extends TypingTransformer

    A base class for typing transformers that need to perform "thicket expansion".

    A base class for typing transformers that need to perform "thicket expansion". A thicket is the output of a transformation that is flattened into the enclosing block.

    Definition Classes
      TypingTransformers
21.  abstract class TypingTransformer extends Global.Transformer
    Definition Classes
      TypingTransformers

### Value Members

1.  final def !=(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
2.  final def ##(): Int
   Definition Classes
     AnyRef → Any
3.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
4.  def addConcreteSpecMethod(m: Global.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
   Note

     This field is part of the specializeTypes subcomponent, so any symbols that here are not garbage collected at the end of a compiler run!

5.  final def afterOwnPhase[T](op: ⇒ T): T
   Definition Classes
     SubComponent
   Annotations
     @inline()
6.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
7.  final def beforeOwnPhase[T](op: ⇒ T): T
   Definition Classes
     SubComponent
   Annotations
     @inline()
8.  def changesBaseClasses: Boolean

   This phase changes base classes.

   This phase changes base classes.

   Definition Classes
     SpecializeTypes → InfoTransform
9.  def clone(): AnyRef
   Attributes
     protected[lang]
   Definition Classes
     AnyRef
   Annotations
     @throws( ... ) @native()
10.  def concreteTypes(sym: Global.Symbol): List[Global.Type]

    Return the types `sym` should be specialized at.

    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
11.  def emptyEnv: TypeEnv
    Definition Classes
      SpecializeTypes
12.  def enabled: Boolean

    Is this component enabled? Default is true.

    Is this component enabled? Default is true.

    Definition Classes
      SubComponent
13.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
14.  def equals(arg0: Any): Boolean
    Definition Classes
      AnyRef → Any
15.  def finalize(): Unit
    Attributes
      protected[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
16.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
17.  val global: Global.this.type

    The global environment; overridden by instantiation in Global.

    The global environment; overridden by instantiation in Global.

    Definition Classes
      specializeTypes → TypingTransformers → SubComponent
18.  def hasSpecializedParams(clazz: Global.Symbol): Boolean

    Has `clazz` any type parameters that need be specialized?

    Has `clazz` any type parameters that need be specialized?

    Definition Classes
      SpecializeTypes
19.  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
20.  def illegalSpecializedInheritance(clazz: Global.Symbol): Boolean
    Definition Classes
      SpecializeTypes
21.  val initial: Boolean

    True if this phase runs before all other phases.

    True if this phase runs before all other phases. Usually, `parser`.

    Definition Classes
      SubComponent
22.  val internal: Boolean

    True if this phase is not provided by a plug-in.

    True if this phase is not provided by a plug-in.

    Definition Classes
      SubComponent
23.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
24.  def isNormalizedMember(m: Global.Symbol): Boolean
    Definition Classes
      SpecializeTypes
25.  def isSpecializedIn(sym: Global.Symbol, site: Global.Type): Boolean

    Refines possiblySpecialized taking into account the instantiation of the specialized type variables at `site`

    Refines possiblySpecialized taking into account the instantiation of the specialized type variables at `site`

    Definition Classes
      SpecializeTypes
26.  def keepsTypeParams: Boolean
    Definition Classes
      SpecializeTypes → InfoTransform
27.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
28.  def newPhase(prev: nsc.Phase): StdPhase

    Just to mark uncheckable

    Just to mark uncheckable

    Definition Classes
      SpecializeTypes → InfoTransform → Transform → SubComponent
29.  def newRootLocalTyper(unit: Global.CompilationUnit): (analyzer)#Typer
    Attributes
      protected
    Definition Classes
      TypingTransformers
30.  def newTransformer(unit: Global.CompilationUnit): Global.Transformer

    The transformer factory

    The transformer factory

    Attributes
      protected
    Definition Classes
      SpecializeTypes → Transform
31.  def nonConflicting(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
32.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
33.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
34.  def originalClass(clazz: Global.Symbol): Global.Symbol

    Return the generic class corresponding to this specialized class.

    Return the generic class corresponding to this specialized class.

    Definition Classes
      SpecializeTypes
35.  def ownPhase: nsc.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
36.  val phaseName: String

    the name of the phase:

    the name of the phase:

    Definition Classes
      SpecializeTypes → SubComponent
37.  def phaseNewFlags: Long

    The following flags may be set by this phase:

    The following flags may be set by this phase:

    Definition Classes
      SpecializeTypes → SubComponent
38.  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
39.  def possiblySpecialized(sym: Global.Symbol): Boolean

    Is `member` potentially affected by specialization? This is a gross overapproximation, but it should be okay for use outside of specialization.

    Is `member` potentially affected by specialization? This is a gross overapproximation, but it should be okay for use outside of specialization.

    Definition Classes
      SpecializeTypes
40.  def produceTypeParameters(syms: List[Global.Symbol], nowner: Global.Symbol, env: TypeEnv): collection.immutable.List[Global.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
41.  val requires: List[String]

    Names of phases required by this component.

    Names of phases required by this component. Default is `Nil`.

    Definition Classes
      SubComponent
42.  val runsAfter: collection.immutable.List[String]

    Names of phases that must run before this phase.

    Names of phases that must run before this phase.

    Definition Classes
      specializeTypes → SubComponent
43.  val runsBefore: List[String]

    Names of phases that must run after this phase.

    Names of phases that must run after this phase. Default is `Nil`.

    Definition Classes
      SubComponent
44.  val runsRightAfter: Some[String]

    Name of the phase that this phase must follow immediately.

    Name of the phase that this phase must follow immediately.

    Definition Classes
      specializeTypes → SubComponent
45.  def satisfiabilityConstraints(env: TypeEnv): Option[TypeEnv]
    Definition Classes
      SpecializeTypes
46.  def satisfiable(env: TypeEnv, warnings: Boolean): Boolean
    Definition Classes
      SpecializeTypes
47.  def satisfiable(env: TypeEnv): Boolean

    The type environment is sound w.r.t.

    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.  lazy val specializableTypes: collection.immutable.List[Global.Type]
    Definition Classes
      SpecializeTypes
49.  def specializeClass(clazz: Global.Symbol, outerEnv: TypeEnv): List[Global.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: AnyRefMap[Global.Symbol, AnyRefMap[TypeEnv, Global.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 specializedFunctionName(sym: Global.Symbol, args: List[Global.Type]): reflect.internal.Symbols.Symbol.NameType
    Definition Classes
      SpecializeTypes
52.  def specializedParams(sym: Global.Symbol): List[Global.Symbol]

    Return specialized type parameters.

    Return specialized type parameters.

    Definition Classes
      SpecializeTypes
53.  val specializedType: Global.TypeMap
    Definition Classes
      SpecializeTypes
54.  def specializedTypeVars(tpe: Global.Type): Set[Global.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
55.  def specializedTypeVars(sym: Global.Symbol): Set[Global.Symbol]
    Definition Classes
      SpecializeTypes
56.  def specializedTypeVars(tpes: List[Global.Type]): Set[Global.Symbol]
    Definition Classes
      SpecializeTypes
57.  def specializedTypeVarsBuffer(tpe: Global.Type, result: Buffer[Global.Symbol]): Unit

    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
58.  def specializedTypeVarsBuffer(sym: Global.Symbol, result: Buffer[Global.Symbol]): Unit
    Definition Classes
      SpecializeTypes
59.  def specializesClass(sym: Global.Symbol): Global.Symbol

    If the symbol is the companion of a value class, the value class.

    If the symbol is the companion of a value class, the value class. Otherwise, AnyRef.

    Definition Classes
      SpecializeTypes
60.  def survivingArgs(sym: Global.Symbol, args: List[Global.Type]): List[Global.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
61.  def survivingParams(params: List[Global.Symbol], env: TypeEnv): collection.immutable.List[Global.Symbol]

    Type parameters that survive when specializing in the specified environment.

    Type parameters that survive when specializing in the specified environment.

    Definition Classes
      SpecializeTypes
62.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
63.  val terminal: Boolean

    True if this phase runs after all other phases.

    True if this phase runs after all other phases. Usually, `terminal`.

    Definition Classes
      SubComponent
64.  def toString(): String
    Definition Classes
      AnyRef → Any
65.  def transformInfo(sym: Global.Symbol, tpe: Global.Type): Global.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
      SpecializeTypes → InfoTransform
66.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
67.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
68.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... ) @native()
69.  object SpecializedSuperConstructorCallArgument
    Definition Classes
      SpecializeTypes
70.  object TypeEnv
    Definition Classes
      SpecializeTypes
71.  object UnifyError extends Throwable with ControlThrowable with Product with Serializable
    Definition Classes
      SpecializeTypes

### Inherited from SpecializeTypes

### Inherited from TypingTransformers

### Inherited from InfoTransform

### Inherited from Transform

### Inherited from SubComponent

### Inherited from AnyRef

### Inherited from Any

### Ungrouped