Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(399)

Unified Diff: pkg/matcher/lib/src/core_matchers.dart

Issue 302093013: pkg/matcher: small nits from previous CL (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: cl nits Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/matcher/README.md ('k') | pkg/matcher/lib/src/error_matchers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/matcher/lib/src/core_matchers.dart
diff --git a/pkg/matcher/lib/src/core_matchers.dart b/pkg/matcher/lib/src/core_matchers.dart
index 64eb7613d45fc5c795e5b0a7bfd5b6a9013c79c0..356476b24d0f33d49d373f6ef7bb4ad7a4f3cba2 100644
--- a/pkg/matcher/lib/src/core_matchers.dart
+++ b/pkg/matcher/lib/src/core_matchers.dart
@@ -96,7 +96,7 @@ class _DeepMatcher extends Matcher {
final int _limit;
var count;
- _DeepMatcher(this._expected, [limit = 1000]) : this._limit = limit;
+ _DeepMatcher(this._expected, [int limit = 1000]) : this._limit = limit;
// Returns a pair (reason, location)
List _compareIterables(expected, actual, matcher, depth, location) {
@@ -513,10 +513,8 @@ abstract class TypeMatcher extends Matcher {
Description describe(Description description) => description.add(_name);
}
-
-
/// A matcher for Map types.
-const isMap = const _IsMap();
+const Matcher isMap = const _IsMap();
class _IsMap extends TypeMatcher {
const _IsMap() : super("Map");
@@ -524,7 +522,7 @@ class _IsMap extends TypeMatcher {
}
/// A matcher for List types.
-const isList = const _IsList();
+const Matcher isList = const _IsList();
class _IsList extends TypeMatcher {
const _IsList() : super("List");
@@ -615,7 +613,6 @@ class _Contains extends Matcher {
Matcher isIn(expected) => new _In(expected);
class _In extends Matcher {
-
final _expected;
const _In(this._expected);
« no previous file with comments | « pkg/matcher/README.md ('k') | pkg/matcher/lib/src/error_matchers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698