Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
pieter-bos committed Jan 19, 2024
1 parent 1dcceae commit c958642
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package vct.col.ast.family.location

import vct.col.ast.InLinePatternLocation
import vct.col.print.{Ctx, Doc, Text}
import vct.col.ast.ops.InLinePatternLocationOps

trait InLinePatternLocationImpl[G] { this: InLinePatternLocation[G] =>
trait InLinePatternLocationImpl[G] extends InLinePatternLocationOps[G] { this: InLinePatternLocation[G] =>
override def layout(implicit ctx: Ctx): Doc = loc.show <+> "{" <> pattern <> "}"
}
2 changes: 1 addition & 1 deletion src/rewrite/vct/rewrite/InlineApplicables.scala
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ case class InlineApplicables[Pre <: Generation]() extends Rewriter[Pre] with Laz
dispatch(InlinePattern(PredicateApply(pred, args, WritePerm()(loc.o))(loc.o))(loc.o))

case Perm(InLinePatternLocation(loc @ InstancePredicateLocation(pred, obj, args), pat), WritePerm()) if pred.decl.inline =>
dispatch(InlinePattern(InstancePredicateApply(obj, pred, args, WritePerm()(loc.o))(loc.o)))
dispatch(InlinePattern(InstancePredicateApply(obj, pred, args, WritePerm()(loc.o))(loc.o))(loc.o))

case other => rewriteDefault(other)
}
Expand Down

0 comments on commit c958642

Please sign in to comment.