diff options
author | Den Shabalin <den.shabalin@gmail.com> | 2013-10-11 17:40:35 +0200 |
---|---|---|
committer | Den Shabalin <den.shabalin@gmail.com> | 2013-10-18 17:24:52 +0200 |
commit | cf58d7c88c35c41f749298de5b0de09fca72df1b (patch) | |
tree | f7c4769cf2884656398235ca50eb78d853bd35e9 /src/compiler | |
parent | 0a16caa5881b312f5cd3817fd4036436ed1d58b5 (diff) | |
download | scala-cf58d7c88c35c41f749298de5b0de09fca72df1b.tar.gz scala-cf58d7c88c35c41f749298de5b0de09fca72df1b.tar.bz2 scala-cf58d7c88c35c41f749298de5b0de09fca72df1b.zip |
re-wire fresh name creator to currentUnit.fresh at compile-time
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/Global.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala index 46456093eb..1c5354502b 100644 --- a/src/compiler/scala/tools/nsc/Global.scala +++ b/src/compiler/scala/tools/nsc/Global.scala @@ -1050,6 +1050,7 @@ class Global(var currentSettings: Settings, var reporter: Reporter) def currentRun: Run = curRun def currentUnit: CompilationUnit = if (currentRun eq null) NoCompilationUnit else currentRun.currentUnit def currentSource: SourceFile = if (currentUnit.exists) currentUnit.source else lastSeenSourceFile + def currentFreshNameCreator = currentUnit.fresh def isGlobalInitialized = ( definitions.isDefinitionsInitialized |