wrapGalileoMatcher function

GalileoMatcher wrapGalileoMatcher(
  1. dynamic x
)

Returns an GalileoMatcher that represents x.

If x is an GalileoMatcher, then it is returned, unmodified.

Implementation

GalileoMatcher wrapGalileoMatcher(x) {
  if (x is GalileoMatcher) return x;
  if (x is ContextAwareMatcher) return _WrappedGalileoMatcher(x);
  return wrapGalileoMatcher(wrapContextAwareMatcher(x));
}