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

Unified Diff: pkg/compiler/lib/src/resolution/resolution_strategy.dart

Issue 2871573007: Skip constructors from ElementEnvironment.forEachClassMember (Closed)
Patch Set: Created 3 years, 7 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: pkg/compiler/lib/src/resolution/resolution_strategy.dart
diff --git a/pkg/compiler/lib/src/resolution/resolution_strategy.dart b/pkg/compiler/lib/src/resolution/resolution_strategy.dart
index a8616f48ff3313cd481a3d5b2db109446d9c276b..eafeb63f5f7692f927a9f975b949b1a7f4e14eeb 100644
--- a/pkg/compiler/lib/src/resolution/resolution_strategy.dart
+++ b/pkg/compiler/lib/src/resolution/resolution_strategy.dart
@@ -310,6 +310,7 @@ class _CompilerElementEnvironment implements ElementEnvironment {
cls.forEachMember((ClassElement declarer, MemberElement member) {
if (member.isSynthesized) return;
if (member.isMalformed) return;
+ if (member.isConstructor) return;
f(declarer, member);
}, includeSuperAndInjectedMembers: true);
}

Powered by Google App Engine
This is Rietveld 408576698