You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Generates the evil looking apply methods in StepDsl#StepBody for Function1 to Function22
4
-
*/
5
-
for (i <-1 to 22) {
6
-
valts= (1 to i).map("T".+).mkString(", ")
7
-
valf="("+ ts +") => Any"
8
-
valp1="def apply["+ ts +"](f: "+ f +")"
9
-
valp2="(implicit "+ (1 to i).map(n =>"m"+ n +":Manifest[T"+ n +"]").mkString(", ") +")"
10
-
valregister="\n register("+(1 to i).map(n =>"m"+ n).mkString(", ") +") {\n"
11
-
valpf=" case List("+ (1 to i).map("a"+ _ +":AnyRef").mkString(", ") +") => \n f("+ (1 to i).map(n =>"a"+ n +".asInstanceOf[T"+ n +"]").mkString(",\n") +")\n"
12
-
valotherwise=" case _ =>\n throw new IncorrectStepDefinitionException()\n"
0 commit comments