From 3bc241d3994e893947fb8063c2fc66fee69d9486 Mon Sep 17 00:00:00 2001 From: michelou Date: Wed, 11 Oct 2006 11:54:04 +0000 Subject: removed hand-coded "Direct Known Subclasses" --- src/compiler/scala/tools/nsc/SubComponent.scala | 10 +----- .../scala/tools/nsc/doc/DocGenerator.scala | 37 +++++++++++++--------- src/compiler/scala/tools/nsc/symtab/Names.scala | 10 +----- .../scala/tools/nsc/transform/InfoTransform.scala | 13 ++------ .../scala/tools/nsc/transform/Transform.scala | 15 ++------- src/compiler/scala/tools/nsc/util/Set.scala | 10 +----- src/compiler/scala/tools/nsc/util/SourceFile.scala | 11 +------ 7 files changed, 31 insertions(+), 75 deletions(-) (limited to 'src') diff --git a/src/compiler/scala/tools/nsc/SubComponent.scala b/src/compiler/scala/tools/nsc/SubComponent.scala index 7b7cce7f11..ff759cdc9c 100644 --- a/src/compiler/scala/tools/nsc/SubComponent.scala +++ b/src/compiler/scala/tools/nsc/SubComponent.scala @@ -6,15 +6,7 @@ package scala.tools.nsc -/**

- * An nsc sub-component. - *

- *
- *
Direct Known Subclasses:
- *
- * Transform - *
- *
+/** An nsc sub-component. * * @author Martin Odersky */ diff --git a/src/compiler/scala/tools/nsc/doc/DocGenerator.scala b/src/compiler/scala/tools/nsc/doc/DocGenerator.scala index 01a9489570..428df7fb1a 100644 --- a/src/compiler/scala/tools/nsc/doc/DocGenerator.scala +++ b/src/compiler/scala/tools/nsc/doc/DocGenerator.scala @@ -6,7 +6,7 @@ package scala.tools.nsc.doc -import java.io.{File,FileOutputStream,FileWriter} +import java.io.{File, FileOutputStream, FileWriter} import java.util.StringTokenizer import java.util.regex.Pattern @@ -274,9 +274,9 @@ abstract class DocGenerator extends Models { * @return ... */ def fullHeader(mmbr: HasTree): NodeSeq = { { - if (!mmbr.isInstanceOf[ImplMod]) { - ; - } else NodeSeq.Empty; + if (!mmbr.isInstanceOf[ImplMod]) + ; + else NodeSeq.Empty } }
{ attrsFor(mmbr.tree) } @@ -289,21 +289,28 @@ abstract class DocGenerator extends Models {
{ fullComment(mmbr) } { listSubclasses(mmbr) }
- { lists(mmbr) }
; + { lists(mmbr) } ; - /** Return a NodeSeq with the known subclasses for 'mmbr', if any. */ - def listSubclasses(mmbr: HasTree): NodeSeq = { + /** Return a NodeSeq with the known subclasses for mmbr, if any. + * + * @param mmbr ... + * @return ... + */ + def listSubclasses(mmbr: HasTree): NodeSeq = if (!subclasses(mmbr.tree.symbol).isEmpty) -
Direct known subclasses:
-
- { val links = - for (val subc <- subclasses(mmbr.tree.symbol)) - yield aref(urlFor(subc), contentFrame, subc.nameString) - links.reduceRight { (link: Seq[Node], seq: Seq[Node]) => link.concat(Text(", ")).concat(seq) } - }
+
+
+ Direct known subclasses: +
+
{ { + val links = + for (val subc <- subclasses(mmbr.tree.symbol)) yield + aref(urlFor(subc), contentFrame, subc.nameString) + links.reduceRight { (link: Seq[Node], seq: Seq[Node]) => link.concat(Text(", ")).concat(seq) } + } }
+
; else NodeSeq.Empty - } def lists(mmbr: HasTree) = mmbr match { case cmod: ImplMod => { listMembersShort(mmbr) } diff --git a/src/compiler/scala/tools/nsc/symtab/Names.scala b/src/compiler/scala/tools/nsc/symtab/Names.scala index c6634a0e2a..0d868c8537 100644 --- a/src/compiler/scala/tools/nsc/symtab/Names.scala +++ b/src/compiler/scala/tools/nsc/symtab/Names.scala @@ -9,15 +9,7 @@ package scala.tools.nsc.symtab import scala.tools.nsc.util.NameTransformer import scala.tools.util.UTF8Codec -/**

- * The class Names ... - *

- *
- *
Direct Known Subclasses:
- *
- * SymbolTable - *
- *
+/** The class Names ... * * @author Martin Odersky * @version 1.0, 05/02/2005 diff --git a/src/compiler/scala/tools/nsc/transform/InfoTransform.scala b/src/compiler/scala/tools/nsc/transform/InfoTransform.scala index 9f46da68a9..3dbab7121b 100644 --- a/src/compiler/scala/tools/nsc/transform/InfoTransform.scala +++ b/src/compiler/scala/tools/nsc/transform/InfoTransform.scala @@ -8,19 +8,10 @@ package scala.tools.nsc.transform /**

* A base class for transforms. + *

+ *

* A transform contains a compiler phase which applies a tree transformer. *

- *
- *
Direct Known Subclasses:
- *
- * AddInterfaces, - * ExplicitOuter, - * Flatten, - * LambdaLift, - * Mixin, - * UnCurry - *
- *
*/ abstract class InfoTransform extends Transform { import global.{Symbol, Type, InfoTransformer, infoTransformers} diff --git a/src/compiler/scala/tools/nsc/transform/Transform.scala b/src/compiler/scala/tools/nsc/transform/Transform.scala index 1825438984..b4ec94f269 100644 --- a/src/compiler/scala/tools/nsc/transform/Transform.scala +++ b/src/compiler/scala/tools/nsc/transform/Transform.scala @@ -4,23 +4,14 @@ */ // $Id$ -package scala.tools.nsc.transform; +package scala.tools.nsc.transform /**

* A base class for transforms. + *

+ *

* A transform contains a compiler phase which applies a tree transformer. *

- *
- *
Direct Known Subclasses:
- *
- * CleanUp, - * Constructors, - * InfoTransform, - * LiftCode, - * SampleTransform, - * TailCalls - *
- *
* * @author Martin Odersky * @version 1.0 diff --git a/src/compiler/scala/tools/nsc/util/Set.scala b/src/compiler/scala/tools/nsc/util/Set.scala index 618497e9c2..26305972d3 100644 --- a/src/compiler/scala/tools/nsc/util/Set.scala +++ b/src/compiler/scala/tools/nsc/util/Set.scala @@ -6,15 +6,7 @@ package scala.tools.nsc.util -/**

- * A common class for lightweight sets. - *

- *
- *
Direct Known Subclasses:
- *
- * HashSet - *
- *
+/** A common class for lightweight sets. */ abstract class Set[T <: AnyRef] { diff --git a/src/compiler/scala/tools/nsc/util/SourceFile.scala b/src/compiler/scala/tools/nsc/util/SourceFile.scala index 8e25976782..fd4dcc760b 100644 --- a/src/compiler/scala/tools/nsc/util/SourceFile.scala +++ b/src/compiler/scala/tools/nsc/util/SourceFile.scala @@ -21,16 +21,7 @@ object SourceFile { def isLineBreak(c: Char) = c == LF || c == FF || c == CR || c == SU } -/**

- * Uses positions that are offsets rather than line/column pairs. - *

- *
- *
Direct Known Subclasses:
- *
- * CompoundSourceFile, - * SourceFileFragment - *
- *
+/** Uses positions that are offsets rather than line/column pairs. * * @author Sean McDirmid * @version 1.0 -- cgit v1.2.3