diff options
author | michelou <michelou@epfl.ch> | 2007-02-19 13:42:37 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2007-02-19 13:42:37 +0000 |
commit | ce7fe41d5f7d831648068c8d82b7c6caa27aa3f5 (patch) | |
tree | 88050c8ce66746852076a1630e88e2e953986591 /src/compiler | |
parent | 969f7593105b117c410f2b6acb1794ba45e0ab8d (diff) | |
download | scala-ce7fe41d5f7d831648068c8d82b7c6caa27aa3f5.tar.gz scala-ce7fe41d5f7d831648068c8d82b7c6caa27aa3f5.tar.bz2 scala-ce7fe41d5f7d831648068c8d82b7c6caa27aa3f5.zip |
scaladoc handles secondary ctors as defs for co...
scaladoc handles secondary ctors as defs for comments
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/doc/DocGenerator.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/doc/DocGenerator.scala b/src/compiler/scala/tools/nsc/doc/DocGenerator.scala index 8c63581bbc..3944e1444d 100644 --- a/src/compiler/scala/tools/nsc/doc/DocGenerator.scala +++ b/src/compiler/scala/tools/nsc/doc/DocGenerator.scala @@ -511,7 +511,7 @@ abstract class DocGenerator extends Models { val sym = mmbr.tree.symbol val Pair(sym1, kind1) = if (sym.isPrimaryConstructor) Pair(sym.owner, CONSTRUCTOR) - else Pair(sym, kindOf(mmbr.tree)) + else Pair(sym, if (sym.isConstructor) DEF else kindOf(mmbr.tree)) comments.get(sym1) match { case Some(text) => comment(text, false, kind1) case None => NodeSeq.Empty |