aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/CompilationUnit.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-04-28 12:59:34 +0200
committerMartin Odersky <odersky@gmail.com>2015-04-28 12:59:34 +0200
commit9e2dd75a8c229239b59a75fe6f9ddf201946032e (patch)
tree7beb9b1b2b6e5a4dd2a21f94fc2ceb2a0a7eb936 /src/dotty/tools/dotc/CompilationUnit.scala
parenta347632d48390a986c3bb44cf7b3cc2f3f988110 (diff)
downloaddotty-9e2dd75a8c229239b59a75fe6f9ddf201946032e.tar.gz
dotty-9e2dd75a8c229239b59a75fe6f9ddf201946032e.tar.bz2
dotty-9e2dd75a8c229239b59a75fe6f9ddf201946032e.zip
Move addrOfTree, addOfSym from CompilationUnit to Pickler.
These only exist if there was a pickler, and they are not unique per CompilationUnit.
Diffstat (limited to 'src/dotty/tools/dotc/CompilationUnit.scala')
-rw-r--r--src/dotty/tools/dotc/CompilationUnit.scala14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/dotty/tools/dotc/CompilationUnit.scala b/src/dotty/tools/dotc/CompilationUnit.scala
index f0ce19320..f5899f0f2 100644
--- a/src/dotty/tools/dotc/CompilationUnit.scala
+++ b/src/dotty/tools/dotc/CompilationUnit.scala
@@ -24,18 +24,4 @@ class CompilationUnit(val source: SourceFile) {
* Subsequent phases can add new sections.
*/
var picklers: Map[ClassSymbol, TastyPickler] = Map()
-
- /** TODO: I'd prefer we do not put this in CompilationUnit
- * Addresses in TASTY file of trees, stored by pickling.
- * Note that trees are checked for reference equality,
- * so one can reliably use this function only directly after `pickler`
- */
- var addrOfTree: tpd.Tree => Option[Addr] = (_ => None)
-
- /** TODO: I'd prefer we do not put this in CompilationUnit
- * Addresses in TASTY file of symbols, stored by pickling.
- * Note that trees are checked for reference equality,
- * so one can reliably use this function only dirrectly after `pickler`
- */
- var addrOfSym: Symbol => Option[Addr] = (_ => None)
}