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

Unified Diff: sdk/lib/_internal/compiler/implementation/tree/nodes.dart

Issue 201613006: Introduces the new syntax for deferred loading (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Ambigous elements are not top-level. Created 6 years, 9 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/tree/nodes.dart
diff --git a/sdk/lib/_internal/compiler/implementation/tree/nodes.dart b/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
index 40ec287f84ceee86e5c1c5851e93e7734ccb49ca..d74f51f9c8f0fdcdc084cb4799cfb6defe656e5e 100644
--- a/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
+++ b/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
@@ -1801,18 +1801,18 @@ abstract class LibraryDependency extends LibraryTag {
class Import extends LibraryDependency {
final Identifier prefix;
final Token importKeyword;
+ final bool isDeferred;
Import(this.importKeyword, StringNode uri,
this.prefix, NodeList combinators,
- Link<MetadataAnnotation> metadata)
+ Link<MetadataAnnotation> metadata,
+ {this.isDeferred})
: super(uri, combinators, metadata);
bool get isImport => true;
Import asImport() => this;
- Token get asKeyword => prefix == null ? null : uri.getEndToken().next;
-
accept(Visitor visitor) => visitor.visitImport(this);
visitChildren(Visitor visitor) {

Powered by Google App Engine
This is Rietveld 408576698