diff options
author | Martin Odersky <odersky@gmail.com> | 2013-02-15 16:06:26 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-02-15 16:06:46 +0100 |
commit | 11c5251de18aab187646e3f58612b457349ebe6a (patch) | |
tree | 310cc1aa63aaa4c72d8bb7c60a72a7ee586e7b3a /src/dotty/tools/dotc/core/Contexts.scala | |
parent | 8928c64386fcc00d75ff6e07cfae9534d8e34632 (diff) | |
download | dotty-11c5251de18aab187646e3f58612b457349ebe6a.tar.gz dotty-11c5251de18aab187646e3f58612b457349ebe6a.tar.bz2 dotty-11c5251de18aab187646e3f58612b457349ebe6a.zip |
New definitions and flags
Diffstat (limited to 'src/dotty/tools/dotc/core/Contexts.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Contexts.scala | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/dotty/tools/dotc/core/Contexts.scala b/src/dotty/tools/dotc/core/Contexts.scala index 451d8edd3..b07319f06 100644 --- a/src/dotty/tools/dotc/core/Contexts.scala +++ b/src/dotty/tools/dotc/core/Contexts.scala @@ -43,7 +43,7 @@ object Contexts { with Cloneable { implicit val ctx: Context = this - def base: ContextBase + val base: ContextBase private[this] var _underlying: Context = _ protected def underlying_=(underlying: Context) = _underlying = underlying @@ -89,11 +89,13 @@ object Contexts { def enclClass: Context = ??? def erasedTypes: Boolean = ??? def debug: Boolean = ??? - def error(msg: String) = ??? - def warning(msg: String) = ??? - def log(msg: String) = ??? + def error(msg: String): Unit = ??? + def warning(msg: String): Unit = ??? + def log(msg: String): Unit = ??? + def debuglog(msg: String): Unit = ??? def inform(msg: String) = ??? def informTime(msg: String, start: Long): Unit = ??? + def beforeTyper[T](op: => T): T = ??? private var _condensed: CondensedContext = null def condensed: CondensedContext = { @@ -137,11 +139,13 @@ object Contexts { } object NoContext extends Context { - def base = unsupported("base") + lazy val base = unsupported("base") } - class ContextBase extends ContextState with Transformers.TransformerBase - with Printers.PrinterBase { + class ContextBase extends ContextState + with Transformers.TransformerBase + with Printers.PrinterBase + with Denotations.DenotationsBase { val settings = new ScalaSettings |