Skip to content

Commit

Permalink
layout fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
petravandenbos-utwente committed Jul 20, 2023
1 parent 048dc61 commit 07bd995
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/col/vct/col/ast/lang/JavaParamImpl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import vct.col.ast.JavaParam
import vct.col.print.{Ctx, Doc, Text}

trait JavaParamImpl[G] { this: JavaParam[G] =>
override def layout(implicit ctx: Ctx): Doc = Text(t + " " + name)
override def layout(implicit ctx: Ctx): Doc = t.show <+> name

}
2 changes: 1 addition & 1 deletion src/col/vct/col/ast/type/TUnionImpl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import vct.col.ast.TUnion
import vct.col.print.{Ctx, Doc}

trait TUnionImpl[G] { this: TUnion[G] =>
override def layout(implicit ctx: Ctx): Doc = Doc.spread(types)
override def layout(implicit ctx: Ctx): Doc = Doc.fold(types)(_ <+> "|" <+> _)

}

0 comments on commit 07bd995

Please sign in to comment.