Skip to content

Commit

Permalink
Last bit to support predicates as well
Browse files Browse the repository at this point in the history
  • Loading branch information
bobismijnnaam committed Sep 24, 2024
1 parent 6bdcd89 commit 7becf37
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,9 @@ case class EncodePermissionStratification[Pre <: Generation](
}

case cp: ChorPerm[Pre] =>
??? // Unexpected chorperm with something else than a FieldLocation
specializing.having(EndpointName[Post](succ(cp.endpoint.decl))(cp.o)) {
Perm(dispatch(cp.loc), dispatch(cp.perm))(expr.o)
}

case Perm(loc: FieldLocation[Pre], perm) if specializing.nonEmpty =>
makeWrappedPerm(loc, perm, specializing.top)(expr.o)
Expand Down

0 comments on commit 7becf37

Please sign in to comment.