summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorburaq <buraq@epfl.ch>2003-12-08 10:55:01 +0000
committerburaq <buraq@epfl.ch>2003-12-08 10:55:01 +0000
commit6e1ccede35b2804295fd38abae6df1b4a06c570c (patch)
tree4fb0cb384117d2ec670be98fd088e8d15cd270c0 /sources
parent6b8ceb50e3c97f9317eb33613a4d5f21d4cf9d55 (diff)
downloadscala-6e1ccede35b2804295fd38abae6df1b4a06c570c.tar.gz
scala-6e1ccede35b2804295fd38abae6df1b4a06c570c.tar.bz2
scala-6e1ccede35b2804295fd38abae6df1b4a06c570c.zip
updated comment
Diffstat (limited to 'sources')
-rw-r--r--sources/scalac/transformer/UnCurry.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/sources/scalac/transformer/UnCurry.java b/sources/scalac/transformer/UnCurry.java
index 1f17e47a49..70dbf88a31 100644
--- a/sources/scalac/transformer/UnCurry.java
+++ b/sources/scalac/transformer/UnCurry.java
@@ -237,10 +237,11 @@ public class UnCurry extends OwnerTransformer
}
/** converts `a_1,...,a_n' to Seq(a_1,...,a_n)
- * if a_1 is an escaped sequence as in x:_*, takes care of
- * escaping
+ * if a_n is an escaped sequence x:_*, takes care of escaping
+ *
+ * precondition: params[params.length-1].flags & REPEATED != 0
*/
- private Tree[] toSequence(int pos, Symbol[] params, Tree[] args) {
+ private Tree[] toSequence( int pos, Symbol[] params, Tree[] args ) {
Tree[] result = new Tree[params.length];
for (int i = 0; i < params.length - 1; i++)
result[i] = args[i];