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

Unified Diff: mojo/dart/packages/mojo/lib/src/union.dart

Issue 1439993003: Dart: Avoid MojoResult and MojoHandleSignals constructors. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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 | « mojo/dart/packages/mojo/lib/src/types.dart ('k') | mojo/dart/test/core_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/packages/mojo/lib/src/union.dart
diff --git a/mojo/dart/packages/mojo/lib/src/union.dart b/mojo/dart/packages/mojo/lib/src/union.dart
index ce5e4d763726a55a500b37079a9b006c47ca35fc..87e72e79641b9e9772f86ac1599f856639b37b2e 100644
--- a/mojo/dart/packages/mojo/lib/src/union.dart
+++ b/mojo/dart/packages/mojo/lib/src/union.dart
@@ -8,8 +8,7 @@ abstract class Union {
void encode(Encoder encoder, int offset);
}
-class UnionError {
-}
+class UnionError {}
class UnsetUnionTagError extends UnionError {
final curTag;
@@ -18,7 +17,7 @@ class UnsetUnionTagError extends UnionError {
UnsetUnionTagError(this.curTag, this.requestedTag);
String toString() {
- return "Tried to read unset union member: {{requestedTag}} "
- "current member: {{curTag}}.";
+ return "Tried to read unset union member: $requestedTag "
+ "current member: $curTag.";
}
}
« no previous file with comments | « mojo/dart/packages/mojo/lib/src/types.dart ('k') | mojo/dart/test/core_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698