scala.tools.partest

CompilerTest

abstract class CompilerTest extends DirectTest

For testing compiler internals directly. Each source code string in "sources" will be compiled, and the check function will be called with the source code and the resulting CompilationUnit. The check implementation should test for what it wants to test and fail (via assert or other exception) if it is not happy.

Linear Supertypes
DirectTest, App, DelayedInit, AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CompilerTest
  2. DirectTest
  3. App
  4. DelayedInit
  5. AnyRef
  6. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CompilerTest()

Type Members

  1. class MkType extends AnyRef

  2. class SymsInPackage extends AnyRef

Abstract Value Members

  1. abstract def check(source: String, unit: nsc.Global.CompilationUnit): Unit

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. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from CompilerTest to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (CompilerTest, B)

    Implicit information
    This member is added by an implicit conversion from CompilerTest to ArrowAssoc[CompilerTest] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  8. def allMembers(root: nsc.Global.Symbol): List[nsc.Global.Symbol]

  9. def args: Array[String]

    Attributes
    protected
    Definition Classes
    App
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def code: String

    Definition Classes
    CompilerTestDirectTest
  13. def compilationUnits(global: Global)(sourceCodes: String*): List[nsc.Global.CompilationUnit]

    Definition Classes
    DirectTest
  14. def compile(args: String*): Boolean

    Definition Classes
    DirectTest
  15. def compileString(global: Global)(sourceCode: String): Boolean

    Definition Classes
    DirectTest
  16. def debugSettings: String

    Attributes
    protected
    Definition Classes
    DirectTest
  17. def delayedInit(body: ⇒ Unit): Unit

    Definition Classes
    App → DelayedInit
  18. def ensuring(cond: (CompilerTest) ⇒ Boolean, msg: ⇒ Any): CompilerTest

    Implicit information
    This member is added by an implicit conversion from CompilerTest to Ensuring[CompilerTest] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: (CompilerTest) ⇒ Boolean): CompilerTest

    Implicit information
    This member is added by an implicit conversion from CompilerTest to Ensuring[CompilerTest] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. def ensuring(cond: Boolean, msg: ⇒ Any): CompilerTest

    Implicit information
    This member is added by an implicit conversion from CompilerTest to Ensuring[CompilerTest] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. def ensuring(cond: Boolean): CompilerTest

    Implicit information
    This member is added by an implicit conversion from CompilerTest to Ensuring[CompilerTest] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  22. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  24. val executionStart: Long

    Definition Classes
    App
  25. def extraSettings: String

    Definition Classes
    CompilerTestDirectTest
  26. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  27. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from CompilerTest to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  28. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  29. lazy val global: Global

  30. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  31. def isDebug: Boolean

    Debugger interest only below this line *

    Debugger interest only below this line *

    Attributes
    protected
    Definition Classes
    DirectTest
  32. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  33. final def log(msg: ⇒ Any): Unit

    Definition Classes
    DirectTest
  34. def main(args: Array[String]): Unit

    Definition Classes
    App
  35. implicit def mkMkType(sym: nsc.Global.Symbol): MkType

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

    Definition Classes
    AnyRef
  37. def newCompiler(settings: Settings): Global

    Definition Classes
    DirectTest
  38. def newCompiler(args: String*): Global

    Definition Classes
    DirectTest
  39. def newSettings(args: List[String]): Settings

    Definition Classes
    DirectTest
  40. def newSources(sourceCodes: String*): collection.immutable.List[BatchSourceFile]

    Definition Classes
    DirectTest
  41. final def notify(): Unit

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

    Definition Classes
    AnyRef
  43. def reporter(settings: Settings): Reporter

    Definition Classes
    DirectTest
  44. def settings: Settings

    Definition Classes
    DirectTest
  45. def show(): Unit

    Definition Classes
    CompilerTestDirectTest
  46. def sources: List[String]

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

    Definition Classes
    AnyRef
  48. def testOutput: Directory

    Definition Classes
    DirectTest
  49. def testPath: File

    Definition Classes
    DirectTest
  50. def toString(): String

    Definition Classes
    AnyRef → Any
  51. lazy val units: List[nsc.Global.CompilationUnit]

  52. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  55. def withRun[T](global: Global)(f: (Run) ⇒ T): T

    Definition Classes
    DirectTest
  56. def [B](y: B): (CompilerTest, B)

    Implicit information
    This member is added by an implicit conversion from CompilerTest to ArrowAssoc[CompilerTest] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implict Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from CompilerTest to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (compilerTest: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from CompilerTest to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (compilerTest: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: CompilerTest

    Implicit information
    This member is added by an implicit conversion from CompilerTest to ArrowAssoc[CompilerTest] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (compilerTest: ArrowAssoc[CompilerTest]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: CompilerTest

    Implicit information
    This member is added by an implicit conversion from CompilerTest to Ensuring[CompilerTest] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (compilerTest: Ensuring[CompilerTest]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from DirectTest

Inherited from App

Inherited from DelayedInit

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from CompilerTest to StringAdd

Inherited by implicit conversion any2stringfmt from CompilerTest to StringFormat

Inherited by implicit conversion any2ArrowAssoc from CompilerTest to ArrowAssoc[CompilerTest]

Inherited by implicit conversion any2Ensuring from CompilerTest to Ensuring[CompilerTest]

Ungrouped