summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2006-10-08 21:07:23 +0000
committermichelou <michelou@epfl.ch>2006-10-08 21:07:23 +0000
commitc986830f3c13ac70829430f84115b18f229579f9 (patch)
tree0c2e34b88d4ffc9058de8361afc9c23949bbbcf5 /src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala
parentfbc3a71a1e0d5cea346f0832202bbca8523f5aba (diff)
downloadscala-c986830f3c13ac70829430f84115b18f229579f9.tar.gz
scala-c986830f3c13ac70829430f84115b18f229579f9.tar.bz2
scala-c986830f3c13ac70829430f84115b18f229579f9.zip
modified escapedStringValue and cleaned up comm...
modified escapedStringValue and cleaned up comments
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala34
1 files changed, 24 insertions, 10 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala b/src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala
index e94edfecef..b098caabdf 100644
--- a/src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala
@@ -1,6 +1,6 @@
/* NSC -- new Scala compiler
* Copyright 2005-2006 LAMP/EPFL
- * @author
+ * @author Martin Odersky
*/
// $Id$
@@ -10,20 +10,34 @@ import symtab.Flags._
import util.FreshNameCreator
import scala.collection.mutable.ListBuffer
-/**
- * - caseArity, caseElement implementations added to case classes
- * - equals, and hashCode and toString methods are added to case classes,
- * unless they are defined in the class or a baseclass
- * different from java.lang.Object
- * - toString method is added to case objects,
- * unless they are defined in the class or a baseclass
- * different from java.lang.Object
-*/
+/** <ul>
+ * <li>
+ * <code>caseArity</code>, <code>caseElement</code> implementations added
+ * to case classes
+ * </li>
+ * <li>
+ * <code>equals</code>, <code>hashCode</code> and </code>toString</code>
+ * methods are added to case classes, unless they are defined in the
+ * class or a baseclass different from <code>java.lang.Object</code>
+ * </li>
+ * <li>
+ * <code>toString</code> method is added to case objects, unless they
+ * are defined in the class or a baseclass different from
+ * <code>java.lang.Object</code>
+ * </li>
+ * </ul>
+ */
trait SyntheticMethods requires Analyzer {
import global._ // the global environment
import definitions._ // standard classes and methods
import typer.{typed} // methods to type trees
+ /**
+ * @param templ ...
+ * @param clazz ...
+ * @param unit ...
+ * @return ...
+ */
def addSyntheticMethods(templ: Template, clazz: Symbol, unit: CompilationUnit): Template = {
def hasImplementation(name: Name): Boolean = {