Skip to content

Commit

Permalink
Code format
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospereira committed Dec 13, 2019
1 parent 535b5f6 commit ca9141e
Showing 1 changed file with 25 additions and 28 deletions.
53 changes: 25 additions & 28 deletions compiler/src/main/scala/play/twirl/compiler/TwirlCompiler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -539,14 +539,13 @@ package """ :+ packageName :+ """
val resp = PresentationCompiler.global
.askForResponse { () =>
val functionType = "(" + params
.map(
group =>
"(" + group
.map {
case ByNameParam(_, paramType) => " => " + paramType
case a => filterType(a.tpt.toString)
}
.mkString(",") + ")"
.map(group =>
"(" + group
.map {
case ByNameParam(_, paramType) => " => " + paramType
case a => filterType(a.tpt.toString)
}
.mkString(",") + ")"
)
.mkString(" => ") + " => " + returnType + ")"

Expand All @@ -559,16 +558,15 @@ package """ :+ packageName :+ """
.mkString(",") + ")",
returnType,
params
.map(
group =>
"(" + group
.map { p =>
p.name.toString + Option(p.tpt.toString)
.filter(_.startsWith("_root_.scala.<repeated>"))
.map(_ => ".toIndexedSeq:_*")
.getOrElse("")
}
.mkString(",") + ")"
.map(group =>
"(" + group
.map { p =>
p.name.toString + Option(p.tpt.toString)
.filter(_.startsWith("_root_.scala.<repeated>"))
.map(_ => ".toIndexedSeq:_*")
.getOrElse("")
}
.mkString(",") + ")"
)
.mkString
)
Expand All @@ -588,16 +586,15 @@ package """ :+ packageName :+ """
functionType,
params.map(group => "(" + group.map(_.name.toString).mkString(",") + ")").mkString(" => "),
params
.map(
group =>
"(" + group
.map { p =>
p.name.toString + Option(p.tpt.toString)
.filter(_.startsWith("_root_.scala.<repeated>"))
.map(_ => ".toIndexedSeq:_*")
.getOrElse("")
}
.mkString(",") + ")"
.map(group =>
"(" + group
.map { p =>
p.name.toString + Option(p.tpt.toString)
.filter(_.startsWith("_root_.scala.<repeated>"))
.map(_ => ".toIndexedSeq:_*")
.getOrElse("")
}
.mkString(",") + ")"
)
.mkString
)
Expand Down

0 comments on commit ca9141e

Please sign in to comment.