Index: packages/matcher/lib/src/util.dart |
diff --git a/packages/matcher/lib/src/util.dart b/packages/matcher/lib/src/util.dart |
index 87060097d04a736f66d22d00f6c9984c35784eeb..112819bd724d4d83424320cc10dd9615ded14834 100644 |
--- a/packages/matcher/lib/src/util.dart |
+++ b/packages/matcher/lib/src/util.dart |
@@ -2,11 +2,11 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-library matcher.util; |
- |
import 'core_matchers.dart'; |
import 'interfaces.dart'; |
+typedef bool _Predicate(value); |
+ |
/// A [Map] between whitespace characters and their escape sequences. |
const _escapeMap = const { |
'\n': r'\n', |
@@ -38,7 +38,7 @@ void addStateInfo(Map matchState, Map values) { |
Matcher wrapMatcher(x) { |
if (x is Matcher) { |
return x; |
- } else if (x is Function) { |
+ } else if (x is _Predicate) { |
return predicate(x); |
} else { |
return equals(x); |