aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/SymTransformers.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/core/SymTransformers.scala')
-rw-r--r--src/dotty/tools/dotc/core/SymTransformers.scala39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/dotty/tools/dotc/core/SymTransformers.scala b/src/dotty/tools/dotc/core/SymTransformers.scala
deleted file mode 100644
index ec2e4d357..000000000
--- a/src/dotty/tools/dotc/core/SymTransformers.scala
+++ /dev/null
@@ -1,39 +0,0 @@
-package dotty.tools.dotc.core
-
-import Periods._, Denotations._, Contexts._
-import java.lang.AssertionError
-
-trait DenotationTransformers { self: RootContext =>
-
- import DenotationTransformers._
-
- def lastPhaseId: PhaseId
-
- private val nxTransformer =
- Array.fill[DenotationTransformer](lastPhaseId + 1)(NoTransformer)
-
- object NoTransformer extends DenotationTransformer {
- val phaseId = lastPhaseId + 1
- def transform(enot: Denotation): Denotation =
- throw new AssertionError("NoTransformer.transform")
- }
-
- def install(pid: PhaseId, trans: DenotationTransformer): Unit = {
- if ((pid > NoPhaseId) && (nxTransformer(pid).phaseId > pid)) {
- nxTransformer(pid) = trans
- install(pid - 1, trans)
- }
- }
-
- def nextTransformer(i: Int) = nxTransformer(i)
-}
-
-object DenotationTransformers {
-
- abstract class DenotationTransformer {
- val phaseId: PhaseId
- def transform(denot: Denotation): Denotation
- }
-
-
-} \ No newline at end of file