scala.tools.nsc.CompilationUnits

CompilationUnit

class CompilationUnit extends CompilationUnitTrait

One unit of compilation that has been submitted to the compiler. It typically corresponds to a single file of source code. It includes error-reporting hooks.

Source
CompilationUnits.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. CompilationUnit
  2. CompilationUnitTrait
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CompilationUnit(source: SourceFile)

Type Members

  1. case class Comment(text: String, pos: Position) extends Product with Serializable

    representation for a source code comment, includes '//' or '/*' '*/ in the value and the position

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. var body: Tree

    the content of the compilation unit in tree form

    the content of the compilation unit in tree form

    Definition Classes
    CompilationUnitCompilationUnitTrait
  8. def clear(): Unit

  9. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. def comment(pos: Position, msg: String): Unit

  11. val comments: ListBuffer[Comment]

    all comments found in this compilation unit

  12. val defined: HashSet[Symbol]

    so we can relink

  13. val depends: HashSet[Symbol]

    Note: depends now contains toplevel classes.

    Note: depends now contains toplevel classes. To get their sourcefiles, you need to dereference with .sourcefile

  14. def deprecationWarning(pos: Position, msg: String): Unit

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

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

    Definition Classes
    AnyRef → Any
  17. def error(pos: Position, msg: String): Unit

  18. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  19. var fresh: FreshNameCreator

    the fresh name creator

    the fresh name creator

    Definition Classes
    CompilationUnitCompilationUnitTrait
  20. def freshTermName(prefix: String): TermName

    Definition Classes
    CompilationUnitCompilationUnitTrait
  21. def freshTypeName(prefix: String): TypeName

    Definition Classes
    CompilationUnitCompilationUnitTrait
  22. final def getClass(): java.lang.Class[_]

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

    Definition Classes
    AnyRef → Any
  24. val icode: LinkedHashSet[IClass]

    The icode representation of classes in this compilation unit.

    The icode representation of classes in this compilation unit. It is empty up to phase 'icode'.

  25. def incompleteInputError(pos: Position, msg: String): Unit

  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. lazy val isJava: Boolean

    Is this about a .

    Is this about a .java source file?

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

    Definition Classes
    AnyRef
  29. final def notify(): Unit

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

    Definition Classes
    AnyRef
  31. def position(pos: Int): Position

  32. val source: SourceFile

    Definition Classes
    CompilationUnitCompilationUnitTrait
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  34. val synthetics: HashMap[Symbol, Tree]

    Synthetic definitions generated by namer, eliminated by typer.

  35. def targetPos: Position

    The position of a targeted type check If this is different from NoPosition, the type checking will stop once a tree that contains this position range is fully attributed.

  36. val toCheck: ListBuffer[() ⇒ Unit]

    things to check at end of compilation unit

  37. def toString(): String

    Definition Classes
    CompilationUnit → AnyRef → Any
  38. def uncheckedWarning(pos: Position, msg: String): Unit

  39. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  42. def warning(pos: Position, msg: String): Unit

Inherited from CompilationUnitTrait

Inherited from AnyRef

Inherited from Any