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

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

Issue 201613006: Introduces the new syntax for deferred loading (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/elements/elements.dart
diff --git a/sdk/lib/_internal/compiler/implementation/elements/elements.dart b/sdk/lib/_internal/compiler/implementation/elements/elements.dart
index 1615fcfbafbf9537f79816e2ea28d52a944a85c7..2e912779eb193cbd31a8a82ccd23c94a79865b6f 100644
--- a/sdk/lib/_internal/compiler/implementation/elements/elements.dart
+++ b/sdk/lib/_internal/compiler/implementation/elements/elements.dart
@@ -231,6 +231,7 @@ abstract class Element implements Spannable {
bool isTopLevel();
bool isAssignable();
bool isNative();
+ bool isDeferredLoaderGetter();
bool impliesType();
@@ -331,12 +332,14 @@ class Elements {
return true;
}
return !Elements.isUnresolved(element)
+ && !element.isAmbiguous()
&& !element.isInstanceMember()
&& !element.isPrefix()
&& element.enclosingElement != null
&& (element.enclosingElement.kind == ElementKind.CLASS ||
element.enclosingElement.kind == ElementKind.COMPILATION_UNIT ||
- element.enclosingElement.kind == ElementKind.LIBRARY);
+ element.enclosingElement.kind == ElementKind.LIBRARY ||
+ element.enclosingElement.kind == ElementKind.PREFIX);
}
static bool isInStaticContext(Element element) {
@@ -746,7 +749,8 @@ abstract class PrefixElement extends Element {
Element lookupLocalMember(String memberName);
/// Is true if this prefix belongs to a deferred import.
bool get isDeferred;
- void markAsDeferred();
+ void markAsDeferred(Import import);
+ Import get deferred_import;
floitsch 2014/03/20 12:33:22 Is this getter even used?
sigurdm 2014/03/20 12:45:54 Yes - it is used for giving the right argument to
}
abstract class TypedefElement extends Element

Powered by Google App Engine
This is Rietveld 408576698