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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart

Issue 15906010: Expose default constructors through ClassElement.localMembers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with HEAD Created 7 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: dart/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart b/dart/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
index 5bc30cd577ca610d6900a31f1cc99686971df08f..609b2bee281ca47111781b52e0efd4a7b4fff156 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
@@ -418,7 +418,9 @@ class DartBackend extends Backend {
new EmptyStatement(new StringToken(SEMICOLON_INFO, ';', -1)),
null, Modifiers.EMPTY, null, null);
- classMembers[classElement].add(constructor);
+ if (!constructor.isSynthesized) {
+ classMembers[classElement].add(constructor);
+ }
elementAsts[constructor] =
new ElementAst(constructor.cachedNode, new TreeElementMapping(null));
}

Powered by Google App Engine
This is Rietveld 408576698