Trait

scala.tools.refactoring.analysis

CompilationUnitDependencies

Related Doc: package analysis

Permalink

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
Visibility
  1. Public
  2. All

Type Members

  1. abstract class TraceAndReturn[T] extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    Tracing

Abstract Value Members

  1. abstract val global: Global

    Permalink
    Definition Classes
    CompilerApiAdapters

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def annotationInfoTree(info: nsc.interactive.Global.AnnotationInfo): nsc.interactive.Global.Tree

    Permalink
    Definition Classes
    CompilerApiAdapters
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

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

    Permalink
    Definition Classes
    SilentTracingTracing
    Annotations
    @inline()
  8. def dependencies(t: nsc.interactive.Global.Tree, newWay: Boolean = false): List[nsc.interactive.Global.Select]

    Permalink

    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.

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

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

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

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

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

    Permalink

    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.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. def isImplementationArtifact(sym: nsc.interactive.Global.Symbol): Boolean

    Permalink
    Definition Classes
    CompilerApiAdapters
  17. def isImportReallyNeeded(t: nsc.interactive.Global.Select): Boolean

    Permalink

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

  18. final def isInstanceOf[T0]: Boolean

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

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

    Permalink

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

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

    Permalink

    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.

  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

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

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

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    SilentTracingTracing

Inherited from SilentTracing

Inherited from Tracing

Inherited from CompilerApiAdapters

Inherited from CompilerApiExtensions

Inherited from AnyRef

Inherited from Any

Ungrouped