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/elements/modelx.dart

Issue 177543002: Constrain type annotations with deferred types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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: 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 9a226bced08a8f416c977aaca4b04923f261fcf1..f8e06d245997200c572e46783ddf5a8ef6fa184e 100644
--- a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
+++ b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
@@ -1016,6 +1016,8 @@ class PrefixElementX extends ElementX implements PrefixElement {
final ImportScope importScope = new ImportScope();
+ bool isDeferred = false;
+
PrefixElementX(String prefix, Element enclosing, this.firstPosition)
: super(prefix, ElementKind.PREFIX, enclosing);
@@ -1030,6 +1032,10 @@ class PrefixElementX extends ElementX implements PrefixElement {
}
accept(ElementVisitor visitor) => visitor.visitPrefixElement(this);
+
+ void markAsDeferred() {
+ isDeferred = true;
+ }
}
class TypedefElementX extends ElementX implements TypedefElement {

Powered by Google App Engine
This is Rietveld 408576698