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

Unified Diff: pkg/compiler/lib/src/elements/elements.dart

Issue 895583006: Update yield warnings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix example Created 5 years, 10 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: pkg/compiler/lib/src/elements/elements.dart
diff --git a/pkg/compiler/lib/src/elements/elements.dart b/pkg/compiler/lib/src/elements/elements.dart
index a055e95df1341f131ca410006b1f5245ffc1d912..b7c4bba0be70be1e5a5b62d0e714ed6e4ea09650 100644
--- a/pkg/compiler/lib/src/elements/elements.dart
+++ b/pkg/compiler/lib/src/elements/elements.dart
@@ -1157,16 +1157,16 @@ abstract class FunctionElement extends Element
/// Enum for the synchronous/asynchronous function body modifiers.
class AsyncMarker {
/// The default function body marker.
- static AsyncMarker SYNC = const AsyncMarker._();
+ static const AsyncMarker SYNC = const AsyncMarker._();
/// The `sync*` function body marker.
- static AsyncMarker SYNC_STAR = const AsyncMarker._(isYielding: true);
+ static const AsyncMarker SYNC_STAR = const AsyncMarker._(isYielding: true);
/// The `async` function body marker.
- static AsyncMarker ASYNC = const AsyncMarker._(isAsync: true);
+ static const AsyncMarker ASYNC = const AsyncMarker._(isAsync: true);
/// The `async*` function body marker.
- static AsyncMarker ASYNC_STAR =
+ static const AsyncMarker ASYNC_STAR =
const AsyncMarker._(isAsync: true, isYielding: true);
/// Is `true` if this marker defines the function body to have an

Powered by Google App Engine
This is Rietveld 408576698