Dataflow: Introduce consistency check for flow targeting PostUpdateNodes.

This commit is contained in:
Anders Schack-Mulligen
2020-10-09 14:29:52 +02:00
parent 6ddda1fa1d
commit 1c043447e8
5 changed files with 25 additions and 0 deletions

View File

@@ -167,4 +167,9 @@ module Consistency {
not isImmutableOrUnobservable(n) and
msg = "ArgumentNode is missing PostUpdateNode."
}
query predicate postWithInFlow(PostUpdateNode n, string msg) {
simpleLocalFlowStep(_, n) and
msg = "PostUpdateNode should not be the target of local flow."
}
}