diff options
author | Martin Odersky <odersky@gmail.com> | 2014-08-09 13:45:29 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-08-09 13:45:29 +0200 |
commit | 57c6c85cbc953a3489ee8d16bb5b7be862183924 (patch) | |
tree | b00bc4ac442e376b9a8da38ca9d5a4039e7630b6 /src/dotty/tools/dotc/transform/PatternMatcher.scala | |
parent | 9024f25e78a9fe5d27dd2c30aa24999d8901dab6 (diff) | |
download | dotty-57c6c85cbc953a3489ee8d16bb5b7be862183924.tar.gz dotty-57c6c85cbc953a3489ee8d16bb5b7be862183924.tar.bz2 dotty-57c6c85cbc953a3489ee8d16bb5b7be862183924.zip |
Disentangle phases from treetransforms
TreeTransforms are no longer phases. This allows to generate
new transforms in prepare... methods without running into the
problem that thee new transforms are undefined as phases.
It also makes for a cleaner separation of concerns.
Diffstat (limited to 'src/dotty/tools/dotc/transform/PatternMatcher.scala')
-rw-r--r-- | src/dotty/tools/dotc/transform/PatternMatcher.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/transform/PatternMatcher.scala b/src/dotty/tools/dotc/transform/PatternMatcher.scala index 40a157483..373fae12f 100644 --- a/src/dotty/tools/dotc/transform/PatternMatcher.scala +++ b/src/dotty/tools/dotc/transform/PatternMatcher.scala @@ -16,7 +16,7 @@ import ast.Trees._ /** This transform eliminates patterns. Right now it's a dummy. * Awaiting the real pattern matcher. */ -class PatternMatcher extends TreeTransform { +class PatternMatcher extends MiniPhaseTransform { import ast.tpd._ override def name: String = "patternMatcher" |