scala.tools.nsc.CompilationUnits

CompilationUnit

class CompilationUnit extends AnyRef

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
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. CompilationUnit
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CompilationUnit(source: SourceFile)

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

  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 defined: HashSet[Symbol]

    so we can relink

  12. 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

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

  14. def echo(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 exists: Boolean

  19. def finalize(): Unit

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

    the fresh name creator

  21. def freshTermName(prefix: String): TermName

  22. def freshTypeName(prefix: String): TypeName

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

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

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

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

  27. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  28. lazy val isJava: Boolean

    Is this about a .

    Is this about a .java source file?

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

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

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

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

  33. val source: SourceFile

  34. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Synthetic definitions generated by namer, eliminated by typer.

  36. 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.

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

    things to check at end of compilation unit

  38. def toString(): String

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

  40. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any