scala.tools.refactoring.analysis

CompilationUnitDependencies

trait CompilationUnitDependencies extends CompilerApiExtensions with CompilerApiAdapters with TracingImpl

Self Type
CompilationUnitDependencies with InteractiveScalaCompiler with TreeTraverser with TreeExtractors with PimpedTrees
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CompilationUnitDependencies
  2. SilentTracing
  3. Tracing
  4. CompilerApiAdapters
  5. CompilerApiExtensions
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. implicit class TraceAndReturn[T] extends AnyRef

    Definition Classes
    Tracing

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. def annotationInfoTree(info: nsc.interactive.Global.AnnotationInfo): nsc.interactive.Global.Tree

    Definition Classes
    CompilerApiAdapters
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def context[T](name: String)(body: ⇒ T): T

    Definition Classes
    SilentTracingTracing
    Annotations
    @inline()
  10. def dependencies(t: nsc.interactive.Global.Tree): List[nsc.interactive.Global.Select]

    Calculates all the external dependencies the given Tree has.

    Calculates all the external dependencies the given Tree has. Compared to neededImports, this function might also return trees that don't need to be explicitly imported, for example because they are defined in the same compilation unit.

  11. def enclosingPackage(tree: nsc.interactive.Global.Tree, pos: nsc.interactive.Global.Position): nsc.interactive.Global.Tree

    Definition Classes
    CompilerApiExtensions
  12. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def findDeepestNeededSelect(t: nsc.interactive.Global.Tree): Option[nsc.interactive.Global.Select]

    Finds the last "visible" (with a range position) select in some tree selection.

    Finds the last "visible" (with a range position) select in some tree selection.

    Selects are usually only partly written down in source code (except when we write down the full name to some identifier), so there exists a select at which the tree turns from being visible to being invisible. We need to find this tree to determine whether we need do make an import with the minimally required path.

    This function also already filters trees that we don't need to import, e.g. from the Predef or the scala package.

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

    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. def isImportReallyNeeded(t: nsc.interactive.Global.Select): Boolean

    Helper function to filter out trees that we don't need to import, for example because they come from Predef.

  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. def isQualifierDefaultImported(t: nsc.interactive.Global.Tree): Boolean

  21. def locateIn(tree: nsc.interactive.Global.Tree, pos: nsc.interactive.Global.Position, p: (nsc.interactive.Global.Tree) ⇒ Boolean = t => true): nsc.interactive.Global.Tree

    Locate the smallest tree that encloses position.

    Locate the smallest tree that encloses position.

    tree

    The tree in which to search pos

    pos

    The position to look for

    p

    An additional condition to be satisfied by the resulting tree

    returns

    The innermost enclosing tree for which p is true, or EmptyTree if the position could not be found.

    Definition Classes
    CompilerApiExtensions
  22. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. def neededImports(t: nsc.interactive.Global.Tree): List[nsc.interactive.Global.Select]

    Calculates a list of all needed imports for the given Tree.

  24. final def notify(): Unit

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

    Definition Classes
    AnyRef
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. def toString(): String

    Definition Classes
    AnyRef → Any
  28. def trace(msg: ⇒ String): Unit

    Definition Classes
    SilentTracingTracing
    Annotations
    @inline()
  29. def trace(msg: ⇒ String, arg1: ⇒ Any, args: Any*): Unit

    Definition Classes
    SilentTracingTracing
    Annotations
    @inline()
  30. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SilentTracing

Inherited from Tracing

Inherited from CompilerApiAdapters

Inherited from CompilerApiExtensions

Inherited from AnyRef

Inherited from Any

Ungrouped