aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Contexts.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-01-09 05:48:09 +0100
committerMartin Odersky <odersky@gmail.com>2014-01-09 06:04:58 +0100
commit0a8eb5087744c44dc67c2d79ce63e993c3ac0ed0 (patch)
treed44e122ea67892238f69e6855a1bf295e2cc2aef /src/dotty/tools/dotc/core/Contexts.scala
parentf0b9d863e940a7b261a2401d68a3ec492ba5fb8d (diff)
downloaddotty-0a8eb5087744c44dc67c2d79ce63e993c3ac0ed0.tar.gz
dotty-0a8eb5087744c44dc67c2d79ce63e993c3ac0ed0.tar.bz2
dotty-0a8eb5087744c44dc67c2d79ce63e993c3ac0ed0.zip
Augment namedParts to follow through on some proxy types.
Now handled: ConstantTypes, MethodParam, PolyParam
Diffstat (limited to 'src/dotty/tools/dotc/core/Contexts.scala')
-rw-r--r--src/dotty/tools/dotc/core/Contexts.scala8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/dotty/tools/dotc/core/Contexts.scala b/src/dotty/tools/dotc/core/Contexts.scala
index 90e861f07..f74cd9445 100644
--- a/src/dotty/tools/dotc/core/Contexts.scala
+++ b/src/dotty/tools/dotc/core/Contexts.scala
@@ -179,10 +179,8 @@ object Contexts {
*/
private var creationTrace: Array[StackTraceElement] = _
- setCreationTrace()
-
private def setCreationTrace() =
- if (true || this.settings.debug.value)
+ if (this.settings.debug.value)
creationTrace = (new Throwable).getStackTrace().take(20)
/** Print all enclosing context's creation stacktraces */
@@ -263,8 +261,8 @@ object Contexts {
/** A fresh clone of this context. */
def fresh: FreshContext = {
- val newctx: Context = super.clone.asInstanceOf[FreshContext]
- newctx.outer = this
+ val newctx: Context = super.clone.asInstanceOf[FreshContext]
+ newctx.outer = this
newctx.implicitsCache = null
newctx.setCreationTrace()
// Dotty deviation: Scala2x allows access to private members implicitCache and setCreationTrace