diff options
author | michelou <michelou@epfl.ch> | 2006-10-11 11:54:04 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2006-10-11 11:54:04 +0000 |
commit | 3bc241d3994e893947fb8063c2fc66fee69d9486 (patch) | |
tree | 77f9cd3ee66d57fbd8828a07fc617fcb297090cf | |
parent | 096ef34f8e43aecda6018f92e228cc43e12b81a8 (diff) | |
download | scala-3bc241d3994e893947fb8063c2fc66fee69d9486.tar.gz scala-3bc241d3994e893947fb8063c2fc66fee69d9486.tar.bz2 scala-3bc241d3994e893947fb8063c2fc66fee69d9486.zip |
removed hand-coded "Direct Known Subclasses"
-rw-r--r-- | src/compiler/scala/tools/nsc/SubComponent.scala | 10 | ||||
-rw-r--r-- | src/compiler/scala/tools/nsc/doc/DocGenerator.scala | 37 | ||||
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/Names.scala | 10 | ||||
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/InfoTransform.scala | 13 | ||||
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/Transform.scala | 15 | ||||
-rw-r--r-- | src/compiler/scala/tools/nsc/util/Set.scala | 10 | ||||
-rw-r--r-- | src/compiler/scala/tools/nsc/util/SourceFile.scala | 11 |
7 files changed, 31 insertions, 75 deletions
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 -/** <p> - * An nsc sub-component. - * </p> - * <dl class="subclasses"> - * <dt><b>Direct Known Subclasses:</b></dt> - * <dd> - * <a href="transform/Transform.html" target="contentFrame">Transform</a> - * </dd> - * </dl> +/** 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 = <span>{ { - if (!mmbr.isInstanceOf[ImplMod]) { - <a name = {Utility.escape(mmbr.tree.symbol.nameString)}></a>; - } else NodeSeq.Empty; + if (!mmbr.isInstanceOf[ImplMod]) + <a name = {Utility.escape(mmbr.tree.symbol.nameString)}></a>; + else NodeSeq.Empty } }<dl><dt> { attrsFor(mmbr.tree) } <code> @@ -289,21 +289,28 @@ abstract class DocGenerator extends Models { </dl> { fullComment(mmbr) } { listSubclasses(mmbr) } <hr/> - { lists(mmbr) } </span>; + { lists(mmbr) } </span>; - /** Return a NodeSeq with the known subclasses for 'mmbr', if any. */ - def listSubclasses(mmbr: HasTree): NodeSeq = { + /** Return a NodeSeq with the known subclasses for <code>mmbr</code>, if any. + * + * @param mmbr ... + * @return ... + */ + def listSubclasses(mmbr: HasTree): NodeSeq = if (!subclasses(mmbr.tree.symbol).isEmpty) - <dl><dt><b>Direct known subclasses:</b></dt> - <dd> - { 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) } - } </dd> </dl> + <dl> + <dt style="margin:10px 0 0 20px;"> + <b>Direct known subclasses:</b> + </dt> + <dd>{ { + 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) } + } }</dd> + </dl>; else NodeSeq.Empty - } def lists(mmbr: HasTree) = mmbr match { case cmod: ImplMod => <span>{ 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 -/** <p> - * The class <code>Names</code> ... - * </p> - * <dl class="subclasses"> - * <dt><b>Direct Known Subclasses:</b></dt> - * <dd> - * <a href="SymbolTable.html" target="contentFrame">SymbolTable</a> - * </dd> - * </dl> +/** The class <code>Names</code> ... * * @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 /** <p> * A base class for transforms. + * </p> + * <p> * A transform contains a compiler phase which applies a tree transformer. * </p> - * <dl class="subclasses"> - * <dt><b>Direct Known Subclasses:</b></dt> - * <dd> - * <a href="AddInterfaces.html" target="contentFrame">AddInterfaces</a>, - * <a href="ExplicitOuter.html" target="contentFrame">ExplicitOuter</a>, - * <a href="Flatten.html" target="contentFrame">Flatten</a>, - * <a href="LambdaLift.html" target="contentFrame">LambdaLift</a>, - * <a href="Mixin.html" target="contentFrame">Mixin</a>, - * <a href="UnCurry.html" target="contentFrame">UnCurry</a> - * </dd> - * </dl> */ 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 /** <p> * A base class for transforms. + * </p> + * <p> * A transform contains a compiler phase which applies a tree transformer. * </p> - * <dl class="subclasses"> - * <dt><b>Direct Known Subclasses:</b></dt> - * <dd> - * <a href="InfoTransform.html" target="contentFrame">CleanUp</a>, - * <a href="CleanUp.html" target="contentFrame">Constructors</a>, - * <a href="InfoTransform.html" target="contentFrame">InfoTransform</a>, - * <a href="LiftCode.html" target="contentFrame">LiftCode</a>, - * <a href="SampleTransform.html" target="contentFrame">SampleTransform</a>, - * <a href="TailCalls.html" target="contentFrame">TailCalls</a> - * </dd> - * </dl> * * @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 -/** <p> - * A common class for lightweight sets. - * </p> - * <dl class="subclasses"> - * <dt><b>Direct Known Subclasses:</b></dt> - * <dd> - * <a href="HashSet.html" target="contentFrame">HashSet</a> - * </dd> - * </dl> +/** 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 } -/** <p> - * Uses positions that are offsets rather than line/column pairs. - * </p> - * <dl class="subclasses"> - * <dt><b>Direct Known Subclasses:</b></dt> - * <dd> - * <a href="CompoundSourceFile.html" target="contentFrame">CompoundSourceFile</a>, - * <a href="SourceFileFragment.html" target="contentFrame">SourceFileFragment</a> - * </dd> - * </dl> +/** Uses positions that are offsets rather than line/column pairs. * * @author Sean McDirmid * @version 1.0 |