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

Unified Diff: sdk/lib/_internal/compiler/implementation/elements/modelx.dart

Issue 675113002: Support async/await in the dart2js frontend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 6 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
Index: sdk/lib/_internal/compiler/implementation/elements/modelx.dart
diff --git a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
index 3ddd8295711c0cdeee46b1190112c4736c802c95..d435f4aa9c96e0acd7784ba785f71ee035330c3b 100644
--- a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
+++ b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
@@ -287,6 +287,7 @@ class ErroneousElementX extends ElementX implements ErroneousElement {
throw 'unsupported operation on erroneous element';
}
+ get asyncMarker => AsyncMarker.SYNC;
Link<MetadataAnnotation> get metadata => unsupported();
bool get hasNode => false;
get node => unsupported();
@@ -1540,6 +1541,8 @@ abstract class BaseFunctionElementX
AbstractFieldElement abstractField;
+ AsyncMarker asyncMarker = AsyncMarker.SYNC;
+
BaseFunctionElementX(String name,
ElementKind kind,
Modifiers this.modifiers,

Powered by Google App Engine
This is Rietveld 408576698