aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Transformers.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-01-21 12:43:11 +0100
committerMartin Odersky <odersky@gmail.com>2013-01-21 12:43:11 +0100
commite59b8822f53fa6fad057ac9642d31e4026800bf5 (patch)
tree644848889cf7479d43b95e11a224e4a9373ff5e3 /src/dotty/tools/dotc/core/Transformers.scala
parenta14284769027bc81e48ccfa3379c6448d1399dfc (diff)
downloaddotty-e59b8822f53fa6fad057ac9642d31e4026800bf5.tar.gz
dotty-e59b8822f53fa6fad057ac9642d31e4026800bf5.tar.bz2
dotty-e59b8822f53fa6fad057ac9642d31e4026800bf5.zip
Big renaming to drop Reference(d) as a terminology and use Denotation instead. previous Denotations (which already were a subclass) are renamed to SymDenotations.
Diffstat (limited to 'src/dotty/tools/dotc/core/Transformers.scala')
-rw-r--r--src/dotty/tools/dotc/core/Transformers.scala12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/dotty/tools/dotc/core/Transformers.scala b/src/dotty/tools/dotc/core/Transformers.scala
index ae58080e4..ee943e13e 100644
--- a/src/dotty/tools/dotc/core/Transformers.scala
+++ b/src/dotty/tools/dotc/core/Transformers.scala
@@ -1,15 +1,15 @@
package dotty.tools.dotc
package core
-import Periods._, Denotations._, Contexts._, Types._, Referenceds._
+import Periods._, SymDenotations._, Contexts._, Types._, Denotations._
import java.lang.AssertionError
trait Transformers { self: RootContext =>
import Transformers._
- def transformersFor(ref: SymRefd): TransformerGroup = ref match {
- case _: Denotation => denotTransformers
+ def transformersFor(ref: SingleDenotation): TransformerGroup = ref match {
+ case _: SymDenotation => denotTransformers
case _ => refTransformers
}
@@ -28,12 +28,12 @@ object Transformers {
def lastPhaseId = nextTransformer(phaseId).phaseId - 1
def validFor(implicit ctx: Context): Period =
Period(ctx.runId, phaseId, lastPhaseId)
- def transform(ref: SymRefd)(implicit ctx: Context): SymRefd
+ def transform(ref: SingleDenotation)(implicit ctx: Context): SingleDenotation
}
object NoTransformer extends Transformer {
val phaseId = lastPhaseId + 1
- def transform(ref: SymRefd)(implicit ctx: Context): SymRefd =
+ def transform(ref: SingleDenotation)(implicit ctx: Context): SingleDenotation =
unsupported("transform")
}
@@ -48,4 +48,4 @@ object Transformers {
install(pid - 1, trans)
}
}
-} \ No newline at end of file
+}