wrapContextAwareMatcher function

ContextAwareMatcher wrapContextAwareMatcher (
  1. dynamic x
)

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));
}