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

Unified Diff: pkg/compiler/lib/src/elements/modelx.dart

Issue 2925263002: A step towards handling `new Object()` in compile_from_dill_test (Closed)
Patch Set: Created 3 years, 6 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/elements/modelx.dart
diff --git a/pkg/compiler/lib/src/elements/modelx.dart b/pkg/compiler/lib/src/elements/modelx.dart
index bf12be6392c2b8aaab0b8f03fa20186f58f1e70d..5a488137abfaaa47424f26ba0a16f6fd0de264e4 100644
--- a/pkg/compiler/lib/src/elements/modelx.dart
+++ b/pkg/compiler/lib/src/elements/modelx.dart
@@ -2483,14 +2483,11 @@ class ConstructorBodyElementX extends BaseFunctionElementX
if (node.hasEmptyBody) return null;
ClassElement classElement = constructor.enclosingClass;
ConstructorBodyElement bodyElement;
- classElement.forEachBackendMember((Element backendMember) {
- if (backendMember.isGenerativeConstructorBody) {
- ConstructorBodyElement body = backendMember;
- if (body.constructor == constructor) {
- // TODO(kasperl): Find a way of stopping the iteration
- // through the backend members.
- bodyElement = backendMember;
- }
+ classElement.forEachBackendMember((ConstructorBodyElement body) {
+ if (body.constructor == constructor) {
+ // TODO(kasperl): Find a way of stopping the iteration
+ // through the backend members.
+ bodyElement = body;
}
});
if (bodyElement == null) {

Powered by Google App Engine
This is Rietveld 408576698