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

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

Issue 48213002: Fix warnings in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update utils.status. Created 7 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
Index: sdk/lib/_internal/compiler/implementation/enqueue.dart
diff --git a/sdk/lib/_internal/compiler/implementation/enqueue.dart b/sdk/lib/_internal/compiler/implementation/enqueue.dart
index 06ed03b2a6b784302df34fa5d4c868ec663d2628..e97f3dcb5d8c2ac65702973503a4aa584f7528c6 100644
--- a/sdk/lib/_internal/compiler/implementation/enqueue.dart
+++ b/sdk/lib/_internal/compiler/implementation/enqueue.dart
@@ -218,7 +218,8 @@ abstract class Enqueuer {
// need to emit the method.
if (universe.hasInvokedGetter(member, compiler)) {
registerClosurizedMember(member, compiler.globalDependencies);
- return addToWorkList(member);
+ addToWorkList(member);
+ return;
}
// Store the member in [instanceFunctionsByName] to catch
// getters on the function.
@@ -226,20 +227,24 @@ abstract class Enqueuer {
memberName, () => const Link<Element>());
instanceFunctionsByName[memberName] = members.prepend(member);
if (universe.hasInvocation(member, compiler)) {
- return addToWorkList(member);
+ addToWorkList(member);
+ return;
}
} else if (member.kind == ElementKind.GETTER) {
if (universe.hasInvokedGetter(member, compiler)) {
- return addToWorkList(member);
+ addToWorkList(member);
+ return;
}
// We don't know what selectors the returned closure accepts. If
// the set contains any selector we have to assume that it matches.
if (universe.hasInvocation(member, compiler)) {
- return addToWorkList(member);
+ addToWorkList(member);
+ return;
}
} else if (member.kind == ElementKind.SETTER) {
if (universe.hasInvokedSetter(member, compiler)) {
- return addToWorkList(member);
+ addToWorkList(member);
+ return;
}
}

Powered by Google App Engine
This is Rietveld 408576698