wrapContextAwareMatcher function
Wraps x
in a ContextAwareMatcher.
Implementation
ContextAwareMatcher wrapContextAwareMatcher(x) {
if (x is ContextAwareMatcher) {
return x;
} else if (x is Matcher) {
return _WrappedContextAwareMatcher(x);
}
return wrapContextAwareMatcher(wrapMatcher(x));
}