summaryrefslogtreecommitdiff
path: root/sources/scalac
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2005-07-21 12:03:44 +0000
committermichelou <michelou@epfl.ch>2005-07-21 12:03:44 +0000
commit2b073f0a006c77eb847fc5cbe3c2421b5e64498e (patch)
tree88bbb86da997b14739d95b4eda834d51c1277932 /sources/scalac
parent170cb99b47f53075342b9e960150219e76d7eea7 (diff)
downloadscala-2b073f0a006c77eb847fc5cbe3c2421b5e64498e.tar.gz
scala-2b073f0a006c77eb847fc5cbe3c2421b5e64498e.tar.bz2
scala-2b073f0a006c77eb847fc5cbe3c2421b5e64498e.zip
- added comment templates.
Diffstat (limited to 'sources/scalac')
-rw-r--r--sources/scalac/transformer/OwnerTransformer.java51
1 files changed, 46 insertions, 5 deletions
diff --git a/sources/scalac/transformer/OwnerTransformer.java b/sources/scalac/transformer/OwnerTransformer.java
index e8f0355ffb..55ee93dadd 100644
--- a/sources/scalac/transformer/OwnerTransformer.java
+++ b/sources/scalac/transformer/OwnerTransformer.java
@@ -1,6 +1,6 @@
/* ____ ____ ____ ____ ______ *\
** / __// __ \/ __// __ \/ ____/ SOcos COmpiles Scala **
-** __\_ \/ /_/ / /__/ /_/ /\_ \ (c) 2002, LAMP/EPFL **
+** __\_ \/ /_/ / /__/ /_/ /\_ \ (c) 2002-2005, LAMP/EPFL **
** /_____/\____/\___/\____/____/ **
\* */
@@ -8,12 +8,11 @@
package scalac.transformer;
-import java.io.*;
-import java.util.*;
import scalac.*;
-import scalac.util.*;
import scalac.ast.*;
-import scalac.symtab.*;
+import scalac.symtab.Kinds;
+import scalac.symtab.Symbol;
+import scalac.util.Name;
import Tree.*;
@@ -35,6 +34,12 @@ public class OwnerTransformer extends Transformer {
unit.body = transform(unit.body);
}
+ /** ..
+ *
+ * @param tree
+ * @param owner
+ * @return
+ */
public Tree transform(Tree tree, Symbol owner) {
Symbol prevOwner = currentOwner;
currentOwner = owner;
@@ -43,6 +48,12 @@ public class OwnerTransformer extends Transformer {
return tree1;
}
+ /** ..
+ *
+ * @param params
+ * @param owner
+ * @return
+ */
public AbsTypeDef[] transform(AbsTypeDef[] params, Symbol owner) {
Symbol prevOwner = currentOwner;
currentOwner = owner;
@@ -51,6 +62,12 @@ public class OwnerTransformer extends Transformer {
return res;
}
+ /** ..
+ *
+ * @param params
+ * @param owner
+ * @return
+ */
public ValDef[][] transform(ValDef[][] params, Symbol owner) {
Symbol prevOwner = currentOwner;
currentOwner = owner;
@@ -59,6 +76,12 @@ public class OwnerTransformer extends Transformer {
return res;
}
+ /** ..
+ *
+ * @param templ
+ * @param owner
+ * @return
+ */
public Template transform(Template templ, Symbol owner) {
Symbol prevOwner = currentOwner;
if (owner.kind == Kinds.CLASS)
@@ -70,6 +93,12 @@ public class OwnerTransformer extends Transformer {
return copy.Template(templ, parents1, body1);
}
+ /** ..
+ *
+ * @param ts
+ * @param tsym
+ * @return
+ */
public Tree[] transformTemplateStats(Tree[] ts, Symbol tsym) {
Tree[] ts1 = ts;
for (int i = 0; i < ts.length; i++) {
@@ -83,10 +112,21 @@ public class OwnerTransformer extends Transformer {
return ts1;
}
+ /** ..
+ *
+ * @param stat
+ * @param tsym
+ * @return
+ */
public Tree transformTemplateStat(Tree stat, Symbol tsym) {
return transform(stat, tsym);
}
+ /** ..
+ *
+ * @param tree
+ * @return
+ */
public Tree transform(Tree tree) {
switch(tree) {
case PackageDef(Tree packaged, Template impl):
@@ -145,4 +185,5 @@ public class OwnerTransformer extends Transformer {
return super.transform(tree);
}
}
+
}