scala.tools.refactoring.analysis

CompilationUnitDependencies

trait CompilationUnitDependencies extends AnyRef

Self Type
CompilationUnitDependencies with InteractiveScalaCompiler with TreeTraverser with TreeExtractors with PimpedTrees
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CompilationUnitDependencies
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. 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.

  9. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. 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.

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

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

    Definition Classes
    AnyRef → Any
  15. 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.

  16. final def isInstanceOf[T0]: Boolean

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

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

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

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

  20. final def notify(): Unit

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

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

    Definition Classes
    AnyRef
  23. def toString(): String

    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped