Report tracing event "trying" after all pattern match predicates.
This commit is contained in:
parent
15dce5cf43
commit
cc1a98fa6d
|
|
@ -158,13 +158,14 @@ class Controller(
|
|||
|
||||
private fun processMatch(inState: ProcessingState, match: MatchRule) : ProcessingState {
|
||||
val context = Context(inState, match.logicalContext())
|
||||
trace.trying(match)
|
||||
|
||||
// invoke matched pattern predicates
|
||||
for (prd in match.patternPredicates()) {
|
||||
if (!tellPredicate(prd, context)) break
|
||||
}
|
||||
|
||||
trace.trying(match)
|
||||
|
||||
// check guard
|
||||
for (gprd in match.rule().guard()) {
|
||||
if (!askPredicate(gprd, context)) break
|
||||
|
|
|
|||
Loading…
Reference in New Issue