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

Unified Diff: pkg/analyzer_experimental/lib/src/generated/java_junit.dart

Issue 17090006: Change MatchState to Map. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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 | « no previous file | pkg/http/test/multipart_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_experimental/lib/src/generated/java_junit.dart
===================================================================
--- pkg/analyzer_experimental/lib/src/generated/java_junit.dart (revision 24041)
+++ pkg/analyzer_experimental/lib/src/generated/java_junit.dart (working copy)
@@ -59,7 +59,7 @@
class _IsNotSameAs extends BaseMatcher {
final _expected;
const _IsNotSameAs(this._expected);
- bool matches(item, MatchState matchState) => !identical(item, _expected);
+ bool matches(item, Map matchState) => !identical(item, _expected);
Description describe(Description description) =>
description.add('not same instance as ').addDescriptionOf(_expected);
}
@@ -69,14 +69,14 @@
final String msg;
final expectedValue;
const _EqualsWithMessage(this.msg, this.expectedValue);
- bool matches(item, MatchState matchState) {
+ bool matches(item, Map matchState) {
return item == expectedValue;
}
Description describe(Description mismatchDescription) {
return mismatchDescription.replace(msg);
}
Description describeMismatch(item, Description mismatchDescription,
- MatchState matchState, bool verbose) {
+ Map matchState, bool verbose) {
return mismatchDescription.replace(msg).add(" $item != $expectedValue");
}
}
@@ -85,14 +85,14 @@
class _IsTrueWithMessage extends BaseMatcher {
final String msg;
const _IsTrueWithMessage(this.msg);
- bool matches(item, MatchState matchState) {
+ bool matches(item, Map matchState) {
return item == true;
}
Description describe(Description mismatchDescription) {
return mismatchDescription.replace(msg);
}
Description describeMismatch(item, Description mismatchDescription,
- MatchState matchState, bool verbose) {
+ Map matchState, bool verbose) {
return mismatchDescription.replace(msg).add(" $item is not true");
}
}
@@ -101,14 +101,14 @@
class _IsFalseWithMessage extends BaseMatcher {
final String msg;
const _IsFalseWithMessage(this.msg);
- bool matches(item, MatchState matchState) {
+ bool matches(item, Map matchState) {
return item == false;
}
Description describe(Description mismatchDescription) {
return mismatchDescription.replace(msg);
}
Description describeMismatch(item, Description mismatchDescription,
- MatchState matchState, bool verbose) {
+ Map matchState, bool verbose) {
return mismatchDescription.replace(msg).add(" $item is not false");
}
}
@@ -117,14 +117,14 @@
class _IsNotNullWithMessage extends BaseMatcher {
final String msg;
const _IsNotNullWithMessage(this.msg);
- bool matches(item, MatchState matchState) {
+ bool matches(item, Map matchState) {
return item != null;
}
Description describe(Description mismatchDescription) {
return mismatchDescription.replace(msg);
}
Description describeMismatch(item, Description mismatchDescription,
- MatchState matchState, bool verbose) {
+ Map matchState, bool verbose) {
return mismatchDescription.replace(msg).add(" $item is null");
}
}
« no previous file with comments | « no previous file | pkg/http/test/multipart_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698