scala.tools.refactoring.analysis

CompilationUnitDependencies

trait CompilationUnitDependencies extends CompilerApiExtensions with CompilerApiAdapters with TracingImpl

Self Type
CompilationUnitDependencies with InteractiveScalaCompiler with TreeTraverser with TreeExtractors with EnrichedTrees
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. abstract class TraceAndReturn[T] extends AnyRef

    Attributes
    protected
    Definition Classes
    Tracing

Abstract Value Members

  1. abstract val global: Global

    Definition Classes
    CompilerApiAdapters

Concrete 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, newWay: Boolean = false): 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.

    t

    tree for which dependencies are computed

    newWay

    is auxiliary flag which says that method runs for new or old implementation of Organize Imports feature. Will be removed when old implementation is dropped together with all code guarded by it.

  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 isImplementationArtifact(sym: nsc.interactive.Global.Symbol): Boolean

    Definition Classes
    CompilerApiAdapters
  19. 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.

  20. final def isInstanceOf[T0]: Boolean

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

  22. 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
  23. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. def neededImports(t: nsc.interactive.Global.Tree, newWay: Boolean = false): List[nsc.interactive.Global.Select]

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

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

    t

    tree for which needed imports are computed

    newWay

    is auxiliary flag which says that method runs for new or old implementation of Organize Imports feature. Will be removed when old implementation is dropped together with all code guarded by it.

  25. final def notify(): Unit

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

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

    Definition Classes
    AnyRef
  28. def toString(): String

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

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

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. implicit final def wrapInTraceAndReturn[T](t: T): (CompilationUnitDependencies.this)#TraceAndReturn[T]

    Attributes
    protected
    Definition Classes
    SilentTracingTracing

Inherited from SilentTracing

Inherited from Tracing

Inherited from CompilerApiAdapters

Inherited from CompilerApiExtensions

Inherited from AnyRef

Inherited from Any

Ungrouped