summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-04-30 12:27:28 +0000
committerpaltherr <paltherr@epfl.ch>2003-04-30 12:27:28 +0000
commitd02f69f6023d73f6c6a956db5fbd9dd9dd7c91d2 (patch)
tree2ea5bdd6ca2ea6ad20eaeafecf97d6554dfa9f24 /sources
parenta9e68909d6a40bd1dd9ee4e89f0f0a2e891fe243 (diff)
downloadscala-d02f69f6023d73f6c6a956db5fbd9dd9dd7c91d2.tar.gz
scala-d02f69f6023d73f6c6a956db5fbd9dd9dd7c91d2.tar.bz2
scala-d02f69f6023d73f6c6a956db5fbd9dd9dd7c91d2.zip
- Changed LabelDef to have an array of Idents i...
- Changed LabelDef to have an array of Idents instead of an array of Trees
Diffstat (limited to 'sources')
-rw-r--r--sources/meta/scalac/ast/Tree.java2
-rw-r--r--sources/scala/tools/scalai/ExpressionCompiler.java2
-rw-r--r--sources/scalac/ast/printer/TextTreePrinter.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/sources/meta/scalac/ast/Tree.java b/sources/meta/scalac/ast/Tree.java
index 6fb25bf0b1..02bb466d08 100644
--- a/sources/meta/scalac/ast/Tree.java
+++ b/sources/meta/scalac/ast/Tree.java
@@ -201,7 +201,7 @@ public class Tree {
n_LabelDef.
setDescription("Labelled expression - the symbols in the array (must be Idents!) are those the label takes as argument").
setRange(Phase.OPTIMIZER, Phase.END).
- addField(t_TermTrees, "params"). // !!! shoudl be t_Idents
+ addField(n_Ident.getType(1), "params").
addField(t_TermTree, "rhs");
n_Block.
diff --git a/sources/scala/tools/scalai/ExpressionCompiler.java b/sources/scala/tools/scalai/ExpressionCompiler.java
index 691682df4c..3283f01773 100644
--- a/sources/scala/tools/scalai/ExpressionCompiler.java
+++ b/sources/scala/tools/scalai/ExpressionCompiler.java
@@ -96,7 +96,7 @@ public class ExpressionCompiler {
private Code compute(Tree tree) {
switch (tree) {
- case LabelDef(Tree[] params, Tree body):
+ case LabelDef(Tree.Ident[] params, Tree body):
Symbol symbol = tree.symbol();
Variable[] vars = new Variable[params.length];
for (int i = 0; i < params.length; i++) {
diff --git a/sources/scalac/ast/printer/TextTreePrinter.java b/sources/scalac/ast/printer/TextTreePrinter.java
index a943ca20f4..54f2764dab 100644
--- a/sources/scalac/ast/printer/TextTreePrinter.java
+++ b/sources/scalac/ast/printer/TextTreePrinter.java
@@ -359,7 +359,7 @@ public class TextTreePrinter implements TreePrinter {
print(body);
break;
- case LabelDef(Tree[] params, Tree rhs):
+ case LabelDef(Tree.Ident[] params, Tree rhs):
assert tree.symbol() != null;
printSymbolDefinition(tree.symbol(), null);
printArray(params, TXT_LEFT_PAREN, TXT_RIGHT_PAREN, TXT_COMMA_SP);