Skip to content

Commit

Permalink
Put unfolding within spec block for java pretty printing
Browse files Browse the repository at this point in the history
  • Loading branch information
bobismijnnaam committed Sep 25, 2024
1 parent 7747d8f commit 6b41f24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,4 @@ __pycache__
*.pprof
*.vpr
test.pvl
a.java
2 changes: 1 addition & 1 deletion src/col/vct/col/ast/expr/resource/UnfoldingImpl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ trait UnfoldingImpl[G] extends NodeFamilyImpl[G] with UnfoldingOps[G] {
Group(Text("unfolding") <+> res.show <+> "in" <>> body)

def layoutJava(implicit ctx: Ctx): Doc =
Group(Text("\\Unfolding") <+> res.show <+> "\\in" <>> body)
Group(Doc.inlineSpec(Text("\\Unfolding") <+> res.show <+> "\\in") <>> body)

def layoutSpec(implicit ctx: Ctx): Doc =
Group(Text("\\unfolding") <+> res.show <+> "\\in" <>> body)
Expand Down

0 comments on commit 6b41f24

Please sign in to comment.