summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcremet <cremet@epfl.ch>2004-01-19 18:25:24 +0000
committercremet <cremet@epfl.ch>2004-01-19 18:25:24 +0000
commitcebef56475f7f73c28680c77188cbe6a4d577905 (patch)
treeb537049a83f5797ace98bbeed3058e394388445b
parent752abae33821117456300793288fb66504fb77b1 (diff)
downloadscala-cebef56475f7f73c28680c77188cbe6a4d577905.tar.gz
scala-cebef56475f7f73c28680c77188cbe6a4d577905.tar.bz2
scala-cebef56475f7f73c28680c77188cbe6a4d577905.zip
- Now, record the Unit object with the comment.
-rw-r--r--sources/scala/tools/scalac/typechecker/Analyzer.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/scala/tools/scalac/typechecker/Analyzer.scala b/sources/scala/tools/scalac/typechecker/Analyzer.scala
index e4c18047c1..377dbdcc29 100644
--- a/sources/scala/tools/scalac/typechecker/Analyzer.scala
+++ b/sources/scala/tools/scalac/typechecker/Analyzer.scala
@@ -14,6 +14,7 @@
// todo: empty package
import ch.epfl.lamp.util.Position;
+import ch.epfl.lamp.util.Pair;
import scalac._;
import scalac.util._;
import scalac.ast._;
@@ -768,7 +769,7 @@ class Analyzer(global: scalac_Global, descr: AnalyzerPhase) extends Transformer(
// set the comment associated with a symbol
val comment: String = global.mapTreeComment.get(tree).asInstanceOf[String];
if (comment != null)
- global.mapSymbolComment.put(sym, comment);
+ global.mapSymbolComment.put(sym, new Pair(comment, unit));
sym
}