Skip to content
Snippets Groups Projects
Commit 68af2928 authored by Emmanouil (Manos) Koukoutos's avatar Emmanouil (Manos) Koukoutos
Browse files

Pretty printing fixes/improvements

parent b82deb1e
No related branches found
No related tags found
No related merge requests found
...@@ -431,11 +431,16 @@ class PrettyPrinter(opts: PrinterOptions, val sb: StringBuffer = new StringBuffe ...@@ -431,11 +431,16 @@ class PrettyPrinter(opts: PrinterOptions, val sb: StringBuffer = new StringBuffe
p"""|@$a p"""|@$a
|""" |"""
} }
if (!fd.tparams.isEmpty) {
p"""|def ${fd.id}(${fd.params}): ${fd.returnType} = { p"""|def ${fd.id}[${nary(fd.tparams, ",")}](${fd.params}): ${fd.returnType} = {
|""" |"""
} else {
p"""|def ${fd.id}(${fd.params}): ${fd.returnType} = {
|"""
}
fd.precondition.foreach { case pre => fd.precondition.foreach { case pre =>
p"""| require($pre) p"""| require($pre)
|""" |"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment