diff options
author | Martin Odersky <odersky@gmail.com> | 2013-06-15 22:01:42 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-06-15 22:01:42 +0200 |
commit | c190626eb0a7c6a314429bb4f3c498da989395fc (patch) | |
tree | b33b87a0d2cdc5b8d75be698143e1a7e759460db /test/test/DeSugarTest.scala | |
parent | 658fc7f7070e8f13abd0391ff4e6045ac34e2891 (diff) | |
download | dotty-c190626eb0a7c6a314429bb4f3c498da989395fc.tar.gz dotty-c190626eb0a7c6a314429bb4f3c498da989395fc.tar.bz2 dotty-c190626eb0a7c6a314429bb4f3c498da989395fc.zip |
Removed ClassDef as a Tree node class.
ClassDefs are now TypeDefs that have a Template as rhs.
Diffstat (limited to 'test/test/DeSugarTest.scala')
-rw-r--r-- | test/test/DeSugarTest.scala | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/test/DeSugarTest.scala b/test/test/DeSugarTest.scala index 0a3a261fb..45967a9dd 100644 --- a/test/test/DeSugarTest.scala +++ b/test/test/DeSugarTest.scala @@ -62,8 +62,6 @@ class DeSugarTest extends ParserTest { tree1.derivedTypeDef(mods, name, transform(rhs, Type), transformSub(tree1.tparams)) case Template(constr, parents, self, body) => tree1.derivedTemplate(transformSub(constr), transform(parents), transformSub(self), transform(body, Expr)) - case ClassDef(mods, name, impl) => - tree1.derivedClassDef(mods, name, transformSub(impl)) case Thicket(trees) => Thicket(flatten(trees mapConserve super.transform)) case tree1 => @@ -74,7 +72,7 @@ class DeSugarTest extends ParserTest { def firstClass(stats: List[Tree]): String = stats match { case Nil => "<empty>" - case ClassDef(_, name, _) :: _ => name.toString + case TypeDef(_, name, _) :: _ => name.toString case ModuleDef(_, name, _) :: _ => name.toString case (pdef: PackageDef) :: _ => firstClass(pdef) case stat :: stats => firstClass(stats) |