diff options
author | Paul Phillips <paulp@improving.org> | 2012-02-23 09:21:12 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-02-23 09:21:16 -0800 |
commit | 382a16e948b146c6e32a4c9e7f01fb2624717e57 (patch) | |
tree | 3b3685e72b6d645adf5df14abeffe5384194e329 /src/compiler/scala/tools/nsc/javac/JavaParsers.scala | |
parent | 329d99829d4e51d0847000439de595de7b565686 (diff) | |
download | scala-382a16e948b146c6e32a4c9e7f01fb2624717e57.tar.gz scala-382a16e948b146c6e32a4c9e7f01fb2624717e57.tar.bz2 scala-382a16e948b146c6e32a4c9e7f01fb2624717e57.zip |
One more to derive trees.
ClassDefs, CaseDefs, and LabelDefs. Dotting eyes,
crossing tees. Point of diminishing returns is reached,
declare victory and withdraw.
Diffstat (limited to 'src/compiler/scala/tools/nsc/javac/JavaParsers.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/javac/JavaParsers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/javac/JavaParsers.scala b/src/compiler/scala/tools/nsc/javac/JavaParsers.scala index 62f6c90fba..4d94ed68fc 100644 --- a/src/compiler/scala/tools/nsc/javac/JavaParsers.scala +++ b/src/compiler/scala/tools/nsc/javac/JavaParsers.scala @@ -658,7 +658,7 @@ trait JavaParsers extends ast.parser.ParsersCommon with JavaScanners { // create the companion so import A._ is not an error (see ticket #1700) val cdefNew = if (statics.isEmpty) cdef - else treeCopy.ClassDef(cdef, cdef.mods, cdef.name, cdef.tparams, implWithImport(importCompanionObject(cdef))) + else deriveClassDef(cdef)(_ => implWithImport(importCompanionObject(cdef))) List(makeCompanionObject(cdefNew, statics), cdefNew) } |