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

Unified Diff: sdk/lib/_internal/compiler/implementation/util/util.dart

Issue 12082024: Use named arguments for messages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 7 years, 11 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
Index: sdk/lib/_internal/compiler/implementation/util/util.dart
diff --git a/sdk/lib/_internal/compiler/implementation/util/util.dart b/sdk/lib/_internal/compiler/implementation/util/util.dart
index 70c1eafdf499daeb1d5a7740b4b87b8a4299b5f7..8a07687d3ee9f87a4f78fd7359b69d82b4680bea 100644
--- a/sdk/lib/_internal/compiler/implementation/util/util.dart
+++ b/sdk/lib/_internal/compiler/implementation/util/util.dart
@@ -16,6 +16,17 @@ part 'link.dart';
// TODO(ahe): How about "Bolt"?
abstract class Spannable {}
+class _SpannableSentinel implements Spannable {
+ final String name;
+
+ const _SpannableSentinel(this.name);
+
+ String toString() => name;
+}
+
+const Spannable CURRENT_ELEMENT_SPANNABLE =
+ const _SpannableSentinel("Current element");
+
class SpannableAssertionFailure {
final Spannable node;
final String message;
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/types/types.dart ('k') | sdk/lib/_internal/compiler/implementation/warnings.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698