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. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

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

    Attributes
    final
    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. def getClass (): java.lang.Class[_]

    Attributes
    final
    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. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  27. lazy val isJava : Boolean

    Is this about a .

    Is this about a .java source file?

  28. def ne (arg0: AnyRef): Boolean

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

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

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

  32. val source : SourceFile

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

    Attributes
    final
    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. def wait (): Unit

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

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

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

Inherited from CompilationUnitTrait

Inherited from AnyRef

Inherited from Any