diff options
author | Burak Emir <emir@epfl.ch> | 2006-03-30 12:14:32 +0000 |
---|---|---|
committer | Burak Emir <emir@epfl.ch> | 2006-03-30 12:14:32 +0000 |
commit | a75bf119d5f990ece1dc07fb344aed40dc63ca86 (patch) | |
tree | 36171294a4f6acb839d9a8dde203b10c27495791 | |
parent | c732b726187f3285d9f36ea1b1a839f9a0987f2b (diff) | |
download | scala-a75bf119d5f990ece1dc07fb344aed40dc63ca86.tar.gz scala-a75bf119d5f990ece1dc07fb344aed40dc63ca86.tar.bz2 scala-a75bf119d5f990ece1dc07fb344aed40dc63ca86.zip |
renamed mkSequence to mkArrayValue
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/UnCurry.scala | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/UnCurry.scala b/src/compiler/scala/tools/nsc/transform/UnCurry.scala index 88e911de37..d8352d518b 100644 --- a/src/compiler/scala/tools/nsc/transform/UnCurry.scala +++ b/src/compiler/scala/tools/nsc/transform/UnCurry.scala @@ -247,15 +247,17 @@ abstract class UnCurry extends InfoTransform { val args1 = formals.last match { case TypeRef(pre, sym, List(elempt)) if (sym == RepeatedParamClass) => - def mkSequence(args: List[Tree]) = + def mkArrayValue(args: List[Tree]) = atPos(pos)(ArrayValue(TypeTree(elempt), args) setType formals.last); - if (args.isEmpty) List(mkSequence(args)) + + if (args.isEmpty) + List(mkArrayValue(args)) else { val suffix = args.last match { case Typed(arg, Ident(name)) if name == nme.WILDCARD_STAR.toTypeName => arg setType seqType(arg.tpe) case _ => - mkSequence(args.drop(formals.length - 1)) + mkArrayValue(args.drop(formals.length - 1)) } args.take(formals.length - 1) ::: List(suffix) } |