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
  • package doc
    Definition Classes
    nsc
  • package model
    Definition Classes
    doc
  • trait ModelFactoryImplicitSupport extends AnyRef

    This trait finds implicit conversions for a class in the default scope and creates scaladoc entries for each of them.

    This trait finds implicit conversions for a class in the default scope and creates scaladoc entries for each of them.

    Let's take this as an example:

    object Test {
      class A
    
      class B {
        def foo = 1
      }
    
      class C extends B {
        def bar = 2
        class implicit
      }
    
      D def conv(a: A) = new C
    }

    Overview: - scaladoc-ing the above classes, A will get two more methods: foo and bar, over its default methods - the nested classes (specifically D above), abstract types, type aliases and constructor members are not added to A (see makeMember0 in ModelFactory, last 3 cases) - the members added by implicit conversion are always listed under the implicit conversion, not under the class they actually come from (foo will be listed as coming from the implicit conversion to C instead of B) - see definitionName in MemberImpl

    Internals: TODO: Give an overview here

    Definition Classes
    model
  • ImplicitConversionImpl
  • ImplicitNotFound
  • typeVarToOriginOrWildcard
  • wildcardToNothing

object wildcardToNothing extends Global.TypeMap

wildcardToNothing transforms wildcard types back to Nothing

Source
ModelFactoryImplicitSupport.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. wildcardToNothing
  2. TypeMap
  3. Function1
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class TypeMapTransformer extends reflect.internal.SymbolTable.Transformer
    Definition Classes
    TypeMap

Value Members

  1. def andThen[A](g: (Global.Type) ⇒ A): (Global.Type) ⇒ A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  2. def apply(tp: Global.Type): Global.Type
    Definition Classes
    wildcardToNothing → TypeMap → Function1
  3. def compose[A](g: (A) ⇒ Global.Type): (A) ⇒ Global.Type
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  4. final def flipped[T](body: ⇒ T): T
    Definition Classes
    TypeMap
    Annotations
    @inline()
  5. def mapOver(tree: Global.Tree, giveup: () ⇒ Nothing): Global.Tree
    Definition Classes
    TypeMap
  6. def mapOver(tree: Global.Tree): Global.Tree
    Definition Classes
    TypeMap
  7. def mapOver(annot: Global.AnnotationInfo): Global.AnnotationInfo
    Definition Classes
    TypeMap
  8. def mapOver(origSyms: List[Global.Symbol]): List[Global.Symbol]
    Definition Classes
    TypeMap
  9. def mapOver(scope: Global.Scope): Global.Scope
    Definition Classes
    TypeMap
  10. def mapOver(tp: Global.Type): Global.Type
    Definition Classes
    TypeMap
  11. def mapOverAnnotArgs(args: List[Global.Tree]): List[Global.Tree]
    Definition Classes
    TypeMap
  12. def mapOverAnnotations(annots: List[Global.AnnotationInfo]): List[Global.AnnotationInfo]
    Definition Classes
    TypeMap
  13. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any
  14. def variance: reflect.internal.Variance
    Definition Classes
    TypeMap
  15. def variance_=(x: reflect.internal.Variance): Unit
    Definition Classes
    TypeMap
  16. def withVariance[T](v: reflect.internal.Variance)(body: ⇒ T): T
    Definition Classes
    TypeMap