scala.reflect.internal

Types

trait Types extends Types

Self Type
SymbolTable
Source
Types.scala
Linear Supertypes
Types, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Types
  2. Types
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Type Members

  1. abstract class AbsTypeImpl extends AbsType

  2. trait AbstractTypeRef extends TypeRef with NonClassTypeRef

  3. trait AliasTypeRef extends TypeRef with NonClassTypeRef

  4. case class AnnotatedType(annotations: List[AnnotationInfo], underlying: Type, selfsym: Symbol) extends Type with RewrappingTypeProxy with Product with Serializable

    A type carrying some annotations.

  5. trait AnnotationFilter extends TypeMap

  6. case class AntiPolyType(pre: Type, targs: List[Type]) extends Type with Product with Serializable

    A class remembering a type instantiation for some a set of overloaded polymorphic symbols.

  7. class AppliedTypeVar extends TypeVar

    Precondition: zipped params/args nonEmpty.

  8. class ArgsTypeRef extends TypeRef with UniqueType

  9. class AsSeenFromMap extends TypeMap with KeepOnlyTypeConstraints

    A map to compute the asSeenFrom method

  10. case class BoundedWildcardType(bounds: TypeBounds) extends Type with Product with Serializable

    BoundedWildcardTypes, used only during type inference, are created in two places that I can find:

  11. case class ClassInfoType(parents: List[Type], decls: Scope, typeSymbol: Symbol) extends CompoundType with Product with Serializable

    A class representing a class info

  12. trait ClassTypeRef extends TypeRef

  13. class CommonOwnerMap extends TypeTraverserWithResult[Symbol]

    Attributes
    protected
  14. abstract class CompoundType extends Type

    A common base class for intersection types and class types

  15. abstract case class ConstantType(value: Constant) extends SingletonType with Product with Serializable

    A class representing a constant type.

  16. class ContainsCollector extends TypeCollector[Boolean]

    A map to implement the contains method.

  17. class ContainsTypeCollector extends TypeCollector[Boolean]

    A map to implement the contains method.

  18. case class DeBruijnBinder(pnames: List[Name], ptypes: List[Type], restpe: Type) extends Type with Product with Serializable

    A binder defining data associated with De Bruijn indices.

  19. case class DeBruijnIndex(level: Int, idx: Int, args: List[Type]) extends Type with Product with Serializable

    A De Bruijn index referring to a previous type argument.

  20. class ExistentialExtrapolation extends TypeMap with VariantTypeMap

    Used by existentialAbstraction.

  21. case class ExistentialType(quantified: List[Symbol], underlying: Type) extends Type with RewrappingTypeProxy with Product with Serializable

    Definition Classes
    Types → Types
  22. class FilterTypeCollector extends TypeCollector[List[Type]]

    A map to implement the filter method.

  23. class FindTypeCollector extends TypeCollector[Option[Type]]

    A map to implement the filter method.

  24. class ForEachTypeTraverser extends TypeTraverser

  25. class HKTypeVar extends TypeVar

    Precondition: params.

  26. class InstantiateDependentMap extends TypeMap with KeepOnlyTypeConstraints

  27. class JavaMethodType extends MethodType

  28. trait KeepOnlyTypeConstraints extends TypeMap with AnnotationFilter

  29. abstract class LazyPolyType extends LazyType

  30. abstract class LazyType extends Type

    A class representing an as-yet unevaluated type.

  31. class MalformedType extends TypeError

    A throwable signalling a malformed type

  32. case class MethodType(params: List[Symbol], resultType: Type) extends Type with Product with Serializable

    A class representing a method type with parameters.

  33. class MissingAliasControl extends Throwable with ControlThrowable

  34. class MissingTypeControl extends Throwable with ControlThrowable

  35. case class NamedType(name: Name, tp: Type) extends Type with Product with Serializable

    A class representing types with a name.

  36. class NoArgsTypeRef extends TypeRef with UniqueType

  37. class NoCommonType extends Throwable with ControlThrowable

  38. trait NonClassTypeRef extends TypeRef

  39. case class NotNullType(underlying: Type) extends SubType with RewrappingTypeProxy with Product with Serializable

  40. case class NullaryMethodType(resultType: Type) extends Type with Product with Serializable

    Definition Classes
    Types → Types
  41. case class OverloadedType(pre: Type, alternatives: List[Symbol]) extends Type with Product with Serializable

    A class containing the alternatives and type prefix of an overloaded symbol.

  42. class PackageClassInfoType extends ClassInfoType

  43. case class PolyType(typeParams: List[Symbol], resultType: Type) extends Type with Product with Serializable

    A type function or the type of a polymorphic value (and thus of kind *).

  44. case class RecoverableCyclicReference(sym: Symbol) extends TypeError with Product with Serializable

    An exception for cyclic references from which we can recover

  45. case class RefinedType(parents: List[Type], decls: Scope) extends CompoundType with Product with Serializable

    A class representing intersection types with refinements of the form <parents_0> with ... with <parents_n> { decls } Cannot be created directly; one should always use refinedType for creation.

  46. final class RefinedType0 extends RefinedType

  47. trait RewrappingTypeProxy extends Type with SimpleTypeProxy

    A proxy for a type (identified by field underlying) that forwards most operations to it.

  48. trait SimpleTypeProxy extends Type

    A proxy for a type (identified by field underlying) that forwards most operations to it (for exceptions, see WrappingProxy, which forwards even more operations).

  49. abstract case class SingleType(pre: Type, sym: Symbol) extends SingletonType with Product with Serializable

    A class for singleton types of the form <prefix>.<sym.name>.type.

  50. abstract class SingletonType extends SubType with SimpleTypeProxy

    A base class for types that represent a single value (single-types and this-types).

  51. abstract class SubType extends Type

    A base class for types that defer some operations to their immediate supertype.

  52. class SubTypePair extends AnyRef

  53. abstract class SubstMap[T] extends TypeMap

    A base class to compute all substitutions

  54. class SubstSymMap extends SubstMap[Symbol]

    A map to implement the substSym method.

  55. class SubstThisAndSymMap extends SubstSymMap

  56. class SubstThisMap extends TypeMap

    A map to implement the substThis method.

  57. class SubstTypeMap extends SubstMap[Type]

    A map to implement the subst method.

  58. class SubstWildcardMap extends TypeMap

  59. abstract case class SuperType(thistpe: Type, supertpe: Type) extends SingletonType with Product with Serializable

    Definition Classes
    Types → Types
  60. abstract case class ThisType(sym: Symbol) extends SingletonType with Product with Serializable

    A class for this-types of the form <sym>.

  61. abstract class Type extends AbsTypeImpl with Annotatable[Type]

    The base class for all types

  62. abstract case class TypeBounds(lo: Type, hi: Type) extends SubType with Product with Serializable

    A class for the bounds of abstract types and type parameters

  63. abstract class TypeCollector[T] extends TypeTraverser

  64. class TypeConstraint extends AnyRef

    A class expressing upper and lower bounds constraints of type variables, as well as their instantiations.

  65. class TypeError extends Throwable

    A throwable signalling a type error

  66. abstract class TypeMap extends (Type) ⇒ Type

    A prototype for mapping a function over all possible types

  67. abstract case class TypeRef(pre: Type, sym: Symbol, args: List[Type]) extends Type with Product with Serializable

    A class for named types of the form <prefix>.<sym.name>[args] Cannot be created directly; one should always use typeRef for creation.

  68. abstract class TypeTraverser extends TypeMap

  69. abstract class TypeTraverserWithResult[T] extends TypeTraverser

  70. class TypeVar extends Type

    A class representing a type variable: not used after phase typer.

  71. class UndoLog extends AnyRef

  72. final class UniqueConstantType extends ConstantType with UniqueType

  73. final class UniqueSingleType extends SingleType with UniqueType

  74. final class UniqueSuperType extends SuperType with UniqueType

  75. final class UniqueThisType extends ThisType with UniqueType

  76. trait UniqueType extends Product

  77. final class UniqueTypeBounds extends TypeBounds with UniqueType

  78. trait VariantTypeMap extends TypeMap

Value Members

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

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

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

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

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

    Definition Classes
    Any
  6. object AnnotatedType extends AnnotatedTypeExtractor with Serializable

    Definition Classes
    Types → Types
  7. object ApproximateDependentMap extends TypeMap

  8. object ClassInfoType extends ClassInfoTypeExtractor with Serializable

    Definition Classes
    Types → Types
  9. object ConstantType extends ConstantTypeExtractor with Serializable

    Definition Classes
    Types → Types
  10. object ErroneousCollector extends TypeCollector[Boolean]

    A map to implement the contains method.

  11. object ErrorType extends Type with Product with Serializable

    An object representing an erroneous type

  12. object ExistentialType extends ExistentialTypeExtractor with Serializable

    Definition Classes
    Types → Types
  13. val GlbFailure: Throwable

  14. object HasTypeMember extends AnyRef

  15. object HasTypeParams extends AnyRef

  16. object IsDependentCollector extends TypeCollector[Boolean]

  17. def JavaMethodType(params: List[Symbol], resultType: Type): JavaMethodType

    The canonical creator for implicit method types

  18. final val LubGlbMargin: Int(0)

  19. object MethodType extends MethodTypeExtractor with Serializable

    Definition Classes
    Types → Types
  20. object NoPrefix extends Type with Product with Serializable

    An object representing a non-existing prefix

  21. object NoType extends Type with Product with Serializable

    An object representing a non-existing type

  22. object NullaryMethodType extends NullaryMethodTypeExtractor with Serializable

    Definition Classes
    Types → Types
  23. object PolyType extends PolyTypeExtractor with Serializable

    Definition Classes
    Types → Types
  24. object RefinedType extends RefinedTypeExtractor with Serializable

    Definition Classes
    Types → Types
  25. object SingleType extends SingleTypeExtractor with Serializable

    Definition Classes
    Types → Types
  26. object StripAnnotationsMap extends TypeMap

  27. object SuperType extends SuperTypeExtractor with Serializable

    Definition Classes
    Types → Types
  28. object ThisType extends ThisTypeExtractor with Serializable

    Definition Classes
    Types → Types
  29. object TypeBounds extends TypeBoundsExtractor with Serializable

    Definition Classes
    Types → Types
  30. object TypeRef extends TypeRefExtractor with Serializable

    Definition Classes
    Types → Types
  31. object TypeVar extends AnyRef

  32. object UnmappableTree extends Tree with TermTree with Product with Serializable

  33. object WildcardType extends Type with Product with Serializable

    An object representing an unknown type, used during type inference.

  34. def abstractTypesToBounds(tp: Type): Type

    Type with all top-level occurrences of abstract types replaced by their bounds

  35. object adaptToNewRunMap extends TypeMap

  36. def addMember(thistp: Type, tp: Type, sym: Symbol): Unit

    Make symbol sym a member of scope tp.decls where thistp is the narrowed owner type of the scope.

  37. def annotatedType(annots: List[AnnotationInfo], underlying: Type, selfsym: Symbol = NoSymbol): Type

    Creator for AnnotatedTypes.

    Creator for AnnotatedTypes. It returns the underlying type if annotations.isEmpty rather than walking into the assertion.

  38. def appliedType(tycon: Type, args: List[Type]): Type

    A creator for type applications

  39. def appliedTypeAsUpperBounds(tycon: Type, args: List[Type]): Type

    A creator for existential types where the type arguments, rather than being applied directly, are interpreted as the upper bounds of unknown types.

    A creator for existential types where the type arguments, rather than being applied directly, are interpreted as the upper bounds of unknown types. For instance if the type argument list given is List(AnyRefClass), the resulting type would be e.g. Set[_ <: AnyRef] rather than Set[AnyRef] .

  40. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  41. def baseTypeOfNonClassTypeRef(tpe: NonClassTypeRef, clazz: Symbol): Type

    Attributes
    protected
  42. def beginsWithTypeVarOrIsRefined(tp: Type): Boolean

    Does this type have a prefix that begins with a type variable, or is it a refinement type? For type prefixes that fulfil this condition, type selections with the same name of equal (wrt) =:= prefixes are considered equal wrt =:=

  43. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  44. def commonOwnerMap: CommonOwnerMap

    Attributes
    protected
  45. final def compareLengths(xs1: List[_], xs2: List[_]): Int

    Annotations
    @tailrec()
  46. def containsExistential(tpe: Type): Boolean

  47. def copyMethodType(tp: Type, params: List[Symbol], restpe: Type): Type

    Create a new MethodType of the same class as tp, i.

    Create a new MethodType of the same class as tp, i.e. keep JavaMethodType

  48. def copyRefinedType(original: RefinedType, parents: List[Type], decls: Scope): Type

  49. def copyTypeRef(tp: Type, pre: Type, sym: Symbol, args: List[Type]): Type

  50. object deAlias extends TypeMap

    Remove any occurrences of type aliases from this type

  51. def defineBaseClassesOfCompoundType(tpe: CompoundType): Unit

    Attributes
    protected
  52. def defineBaseTypeSeqOfCompoundType(tpe: CompoundType): Unit

    Attributes
    protected
  53. def defineBaseTypeSeqOfTypeRef(tpe: TypeRef): Unit

    Attributes
    protected
  54. def defineParentsOfTypeRef(tpe: TypeRef): Unit

    Attributes
    protected
  55. def defineUnderlyingOfSingleType(tpe: SingleType): Unit

    Attributes
    protected
  56. def differentOrNone(tp1: Type, tp2: Type): Type

  57. object dropAllRefinements extends TypeMap

    Substitutes the empty scope for any non-empty decls in the type.

  58. object dropRepeatedParamType extends TypeMap

  59. object dropSingletonType extends TypeMap

    Remove any occurrence of type <singleton> from this type and its parents

  60. def elimAnonymousClass(t: Type): Type

  61. def elimRefinement(t: Type): Type

  62. val enableTypeVarExperimentals: Boolean

    Attributes
    protected
  63. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  64. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  65. def etaExpandKeepsStar: Boolean

    Attributes
    protected
  66. def existentialAbstraction(tparams: List[Symbol], tpe0: Type): Type

    A creator for existential types.

    A creator for existential types. This generates:

    tpe1 where { tparams }

    where tpe1 is the result of extrapolating tpe wrt to tparams. Extrapolating means that type variables in tparams occurring in covariant positions are replaced by upper bounds, (minus any SingletonClass markers), type variables in tparams occurring in contravariant positions are replaced by upper bounds, provided the resulting type is legal wrt to stability, and does not contain any type variable in tparams.

    The abstraction drops all type parameters that are not directly or indirectly referenced by type tpe1. If there are no remaining type parameters, simply returns result type tpe.

  67. def existentialsInType(tpe: Type): List[Symbol]

  68. def explain[T](op: String, p: (Type, T) ⇒ Boolean, tp1: Type, arg2: T): Boolean

    Perform operation p on arguments tp1, arg2 and print trace of computation.

    Perform operation p on arguments tp1, arg2 and print trace of computation.

    Attributes
    protected
  69. def explainTypes(op: (Type, Type) ⇒ Any, found: Type, required: Type): Unit

    If option explaintypes is set, print a subtype trace for op(found, required).

  70. def explainTypes(found: Type, required: Type): Unit

    If option explaintypes is set, print a subtype trace for found <:< required.

  71. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  72. def findRecursiveBounds(ts: List[Type]): List[(Symbol, Symbol)]

    From a list of types, find any which take type parameters where the type parameter bounds contain references to other any types in the list (including itself.

    From a list of types, find any which take type parameters where the type parameter bounds contain references to other any types in the list (including itself.)

    returns

    List of symbol pairs holding the recursive type parameter and the parameter which references it.

  73. def fromDeBruijn(owner: Symbol): TypeMap

  74. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  75. def glb(ts: List[Type]): Type

    The greatest lower bound wrt <:< of a list of types

    The greatest lower bound wrt <:< of a list of types

    Definition Classes
    Types → Types
  76. def glbNorm(ts: List[Type], depth: Int): Type

    The greatest lower bound wrt <:< of a list of types, which have been normalized wrt elimSuper

    The greatest lower bound wrt <:< of a list of types, which have been normalized wrt elimSuper

    Attributes
    protected
  77. final def hasLength(xs: List[_], len: Int): Boolean

    Again avoiding calling length, but the lengthCompare interface is clunky.

  78. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  79. def instTypeVar(tp: Type): Type

  80. def instantiatedBounds(pre: Type, owner: Symbol, tparams: List[Symbol], targs: List[Type]): List[TypeBounds]

  81. def intersectionType(tps: List[Type]): Type

    A creator for intersection type where intersections of a single type are replaced by the type itself.

  82. def intersectionType(tps: List[Type], owner: Symbol): Type

    A creator for intersection type where intersections of a single type are replaced by the type itself, and repeated parent classes are merged.

    A creator for intersection type where intersections of a single type are replaced by the type itself, and repeated parent classes are merged.

    !!! Repeated parent classes are not merged - is this a bug in the comment or in the code?

  83. val intersectionWitness: WeakHashMap[List[Type], WeakReference[Type]]

    A map from lists to compound types that have the given list as parents.

    A map from lists to compound types that have the given list as parents. This is used to avoid duplication in the computation of base type sequences and baseClasses. It makes use of the fact that these two operations depend only on the parents, not on the refinement.

  84. def isConstantType(tp: Type): Boolean

  85. def isDifferentType(tp1: Type, tp2: Type): Boolean

  86. def isDifferentTypeConstructor(tp1: Type, tp2: Type): Boolean

  87. def isErrorOrWildcard(tp: Type): Boolean

  88. def isHKSubType0(tp1: Type, tp2: Type, depth: Int): Boolean

  89. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  90. def isNumericSubType(tp1: Type, tp2: Type): Boolean

    The isNumericValueType tests appear redundant, but without them test/continuations-neg/function3.

    The isNumericValueType tests appear redundant, but without them test/continuations-neg/function3.scala goes into an infinite loop. (Even if the calls are to typeSymbolDirect.)

  91. def isPopulated(tp1: Type, tp2: Type): Boolean

    Is intersection of given types populated? That is, for all types tp1, tp2 in intersection for all common base classes bc of tp1 and tp2 let bt1, bt2 be the base types of tp1, tp2 relative to class bc Then: bt1 and bt2 have the same prefix, and any corresponding non-variant type arguments of bt1 and bt2 are the same

  92. def isRaw(sym: Symbol, args: List[Type]): Boolean

  93. def isRawType(tp: Type): Boolean

    Is type tp a raw type?

  94. def isSameType(tp1: Type, tp2: Type): Boolean

    Do tp1 and tp2 denote equivalent types?

  95. def isSameType2(tp1: Type, tp2: Type): Boolean

  96. def isSameTypes(tps1: List[Type], tps2: List[Type]): Boolean

    Are tps1 and tps2 lists of pairwise equivalent types?

  97. def isSingleType(tp: Type): Boolean

  98. def isSubArg(t1: Type, t2: Type, variance: Int): Boolean

  99. def isSubArgs(tps1: List[Type], tps2: List[Type], tparams: List[Symbol]): Boolean

  100. def isSubType(tp1: Type, tp2: Type, depth: Int): Boolean

  101. def isSubType(tp1: Type, tp2: Type): Boolean

  102. def isSubTypes(tps1: List[Type], tps2: List[Type]): Boolean

    Are tps1 and tps2 lists of equal length such that all elements of tps1 conform to corresponding elements of tps2?

  103. def isWeakSubType(tp1: Type, tp2: Type): Boolean

  104. def isWithinBounds(pre: Type, owner: Symbol, tparams: List[Symbol], targs: List[Type]): Boolean

    Do type arguments targs conform to formal parameters tparams?

  105. def lub(ts: List[Type]): Type

    Definition Classes
    Types → Types
  106. def lubDepth(ts: List[Type]): Int

    The maximum allowable depth of lubs or glbs over types ts.

    The maximum allowable depth of lubs or glbs over types ts. This is the maximum depth of all types in the base type sequences of each of the types ts, plus LubGlbMargin.

  107. def map2Conserve[A <: AnyRef, B](xs: List[A], ys: List[B])(f: (A, B) ⇒ A): List[A]

    like map2, but returns list xs itself - instead of a copy - if function f maps all elements to themselves.

  108. final def matchesType(tp1: Type, tp2: Type, alwaysMatchSimple: Boolean): Boolean

    A function implementing tp1 matches tp2.

  109. final val maxTostringRecursions: Int(50)

    The maximum number of recursions allowed in toString

  110. def mergePrefixAndArgs(tps: List[Type], variance: Int, depth: Int): Option[Type]

    Compute lub (if variance == 1) or glb (if variance == -1) of given list of types tps.

    Compute lub (if variance == 1) or glb (if variance == -1) of given list of types tps. All types in tps are typerefs or singletypes with the same symbol. Return Some(x) if the computation succeeds with result x. Return None if the computation fails.

  111. val missingAliasException: MissingAliasControl

  112. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  113. def needsOuterTest(patType: Type, selType: Type, currentOwner: Symbol): Boolean

    Does a pattern of type patType need an outer test when executed against selector type selType in context defined by currentOwner?

  114. def newExistentialType(quantified: List[Symbol], underlying: Type): Type

    A creator for existential types which flattens nested existentials.

  115. def newUndoLog: UndoLog

    Attributes
    protected
  116. def normalizePlus(tp: Type): Type

  117. final def notify(): Unit

    Definition Classes
    AnyRef
  118. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  119. def numericGlb(ts: List[Type]): Type

  120. def numericLub(ts: List[Type]): Type

  121. def objToAny(tp: Type): Type

  122. def polyType(tparams: List[Symbol], tpe: Type): Type

    A creator for type parameterizations that strips empty type parameter lists.

    A creator for type parameterizations that strips empty type parameter lists. Use this factory method to indicate the type has kind * (it's a polymorphic value) until we start tracking explicit kinds equivalent to typeFun (except that the latter requires tparams nonEmpty).

    PP to AM: I've co-opted this for where I know tparams may well be empty, and expecting to get back tpe in such cases. Re being "forgiving" below, can we instead say this is the canonical creator for polyTypes which may or may not be poly? (It filched the standard "canonical creator" name.)

  123. def rawToExistential: TypeMap

    The raw to existential map converts a raw type to an existential type.

    The raw to existential map converts a raw type to an existential type. It is necessary because we might have read a raw type of a parameterized Java class from a class file. At the time we read the type the corresponding class file might still not be read, so we do not know what the type parameters of the type are. Therefore the conversion of raw types to existential types might not have taken place in ClassFileparser.sigToType (where it is usually done).

  124. def refinedType(parents: List[Type], owner: Symbol): Type

    The canonical creator for a refined type with an initially empty scope.

    The canonical creator for a refined type with an initially empty scope.

    parents

    ...

    owner

    ...

    returns

    ...

  125. def refinedType(parents: List[Type], owner: Symbol, decls: Scope, pos: Position): Type

    the canonical creator for a refined type with a given scope

  126. def repackExistential(tp: Type): Type

    Repack existential types, otherwise they sometimes get unpacked in the wrong location (type inference comes up with an unexpected skolem)

  127. final def sameLength(xs1: List[_], xs2: List[_]): Boolean

    True if two lists have the same length.

    True if two lists have the same length. Since calling length on linear sequences is O(n), it is an inadvisable way to test length equality.

  128. val shorthands: Set[String]

  129. def singleType(pre: Type, sym: Symbol): Type

    The canonical creator for single-types

  130. def singletonBounds(hi: Type): TypeBounds

  131. var skolemizationLevel: Int

    The current skolemization level, needed for the algorithms in isSameType, isSubType that do constraint solving under a prefix.

  132. def solve(tvars: List[TypeVar], tparams: List[Symbol], variances: List[Int], upper: Boolean, depth: Int): Boolean

  133. def solve(tvars: List[TypeVar], tparams: List[Symbol], variances: List[Int], upper: Boolean): Boolean

    Solve constraint collected in types tvars.

    Solve constraint collected in types tvars.

    tvars

    All type variables to be instantiated.

    tparams

    The type parameters corresponding to tvars

    variances

    The variances of type parameters; need to reverse solution direction for all contravariant variables.

    upper

    When true search for max solution else min.

  134. def spanningTypes(ts: List[Type]): List[Type]

    A minimal type list which has a given list of types as its base type sequence

  135. def specializesSym(tp: Type, sym: Symbol): Boolean

    Does type tp implement symbol sym with same or stronger type? Exact only if sym is a member of some refinement type, otherwise we might return false negatives.

  136. def suspendTypeVarsInType(tp: Type): List[TypeVar]

    Make each type var in this type use its original type for comparisons instead of collecting constraints.

  137. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  138. object toDeBruijn extends TypeMap

  139. def toString(): String

    Definition Classes
    AnyRef → Any
  140. def typeFun(tps: List[Symbol], body: Type): Type

    A creator for a type functions, assuming the type parameters tps already have the right owner.

  141. def typeFunAnon(tps: List[Symbol], body: Type): Type

    A creator for anonymous type functions, where the symbol for the type function still needs to be created.

    A creator for anonymous type functions, where the symbol for the type function still needs to be created.

    TODO: type params of anonymous type functions, which currently can only arise from normalising type aliases, are owned by the type alias of which they are the eta-expansion higher-order subtyping expects eta-expansion of type constructors that arise from a class; here, the type params are owned by that class, but is that the right thing to do?

  142. def typeParamsToExistentials(clazz: Symbol): List[Symbol]

  143. def typeParamsToExistentials(clazz: Symbol, tparams: List[Symbol]): List[Symbol]

    A collector that tests for existential types appearing at given variance in a type

  144. def typeRef(pre: Type, sym: Symbol, args: List[Type]): Type

    The canonical creator for typerefs todo: see how we can clean this up a bit

  145. def typeToString(tpe: Type): String

    Attributes
    protected
  146. object typeVarToOriginMap extends TypeMap

    A map to convert every occurrence of a type variable to a wildcard type.

  147. def typeVarsInType(tp: Type): List[TypeVar]

    A list of the typevars in a type.

  148. lazy val undoLog: UndoLog

    A log of type variable with their original constraints.

    A log of type variable with their original constraints. Used in order to undo constraints in the case of isSubType/isSameType failure.

  149. def unique[T <: Type](tp: T): T

    Attributes
    protected
  150. def uniqueTypeCount: Int

  151. def validateClassInfo(tp: ClassInfoType): Unit

    Overridden in reflection compiler

  152. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  155. def weakGlb(ts: List[Type]): (Type, Boolean)

  156. def weakLub(ts: List[Type]): (Type, Boolean)

  157. object wildcardToTypeVarMap extends TypeMap

    A map to convert every occurrence of a wildcard type to a fresh type variable

  158. def withTypesExplained[A](op: ⇒ A): A

    Execute op while printing a trace of the operations on types executed.

Inherited from Types

Inherited from AnyRef

Inherited from Any