Skip to content

Commit

Permalink
Validate all OnClause types :)
Browse files Browse the repository at this point in the history
Signed-off-by: reidspencer <reid.spencer@yoppworks.com>
  • Loading branch information
reid-spencer committed Sep 25, 2023
1 parent 1921fc7 commit d73ead2
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,12 @@ case class ResolutionPass(input: PassInput) extends Pass(input) with UsageResolu
resolveType(t, parentsAsSeq)
case mc: OnMessageClause =>
resolveOnMessageClause(mc, parentsAsSeq)
case ic: OnInitClause => () // no references
case tc: OnTerminationClause => () // no references
case oc: OnOtherClause => () // no references
case ic: OnInitClause =>
resolveOnClauses(ic, parentsAsSeq)
case tc: OnTerminationClause =>
resolveOnClauses(tc, parentsAsSeq)
case oc: OnOtherClause =>
resolveOnClauses(oc, parentsAsSeq)
case h: Handler =>
h.authors.foreach(resolveARef[Author](_, parentsAsSeq))
case e: Entity =>
Expand Down

0 comments on commit d73ead2

Please sign in to comment.