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

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

Issue 1404763002: Include class members in dependencies. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/deferred_load.dart
diff --git a/pkg/compiler/lib/src/deferred_load.dart b/pkg/compiler/lib/src/deferred_load.dart
index 36ff6079a0958fc436b86046f708eac3b709854a..4e095dff5f6250c438919e2caff699fb6561ad64 100644
--- a/pkg/compiler/lib/src/deferred_load.dart
+++ b/pkg/compiler/lib/src/deferred_load.dart
@@ -363,7 +363,8 @@ class DeferredLoadTask extends CompilerTask {
void addLiveInstanceMember(Element element) {
if (!compiler.enqueuer.resolution.hasBeenProcessed(element)) return;
if (!isMirrorUsage && !element.isInstanceMember) return;
- collectDependencies(element.implementation);
+ elements.add(element);
+ collectDependencies(element);
}
ClassElement cls = element.declaration;
cls.forEachLocalMember(addLiveInstanceMember);
@@ -377,6 +378,7 @@ class DeferredLoadTask extends CompilerTask {
elements.add(cls.implementation);
} else if (Elements.isStaticOrTopLevel(element) ||
element.isConstructor) {
+ elements.add(element);
collectDependencies(element);
}
if (element.isGenerativeConstructor) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698