summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dubochet <gilles.dubochet@epfl.ch>2010-01-14 13:22:03 +0000
committerGilles Dubochet <gilles.dubochet@epfl.ch>2010-01-14 13:22:03 +0000
commit814683dd50a1608314bbd5f6fac89ed71cc34fc8 (patch)
treeea4d89792fd436b321a4c06bead8e6e5d68bc005
parent19bf31545fba923c38f60d134276895049838165 (diff)
downloadscala-814683dd50a1608314bbd5f6fac89ed71cc34fc8.tar.gz
scala-814683dd50a1608314bbd5f6fac89ed71cc34fc8.tar.bz2
scala-814683dd50a1608314bbd5f6fac89ed71cc34fc8.zip
[scaladoc] Use cases are marked as such in the ...
[scaladoc] Use cases are marked as such in the documentation (using some changes in r20488). Review by odersky.
-rwxr-xr-xsrc/compiler/scala/tools/nsc/ast/DocComments.scala2
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/page/Template.scala2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/DocComments.scala b/src/compiler/scala/tools/nsc/ast/DocComments.scala
index 1de958832c..a6792b3ba7 100755
--- a/src/compiler/scala/tools/nsc/ast/DocComments.scala
+++ b/src/compiler/scala/tools/nsc/ast/DocComments.scala
@@ -408,7 +408,7 @@ trait DocComments { self: SymbolTable =>
}
for (defn <- defined) yield {
- defn.cloneSymbol(site).setInfo(
+ defn.cloneSymbol(site).setFlag(Flags.SYNTHETIC).setInfo(
substAliases(defn.info).asSeenFrom(site.thisType, defn.owner))
}
}
diff --git a/src/compiler/scala/tools/nsc/doc/html/page/Template.scala b/src/compiler/scala/tools/nsc/doc/html/page/Template.scala
index 3205fcb03f..575d671c8c 100644
--- a/src/compiler/scala/tools/nsc/doc/html/page/Template.scala
+++ b/src/compiler/scala/tools/nsc/doc/html/page/Template.scala
@@ -103,7 +103,7 @@ class Template(tpl: DocTemplateEntity) extends HtmlPage {
def memberToCommentHtml(mbr: MemberEntity, isSelf: Boolean): NodeSeq = {
val useCaseCommentHtml = mbr match {
case nte: NonTemplateMemberEntity if nte.isUseCase =>
- inlineToHtml(comment.Text("(Usecase) "))
+ inlineToHtml(comment.Text("[use case] "))
case _ => NodeSeq.Empty
}
mbr match {