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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/compiler.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
« no previous file with comments | « no previous file | dart/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/_internal/compiler/implementation/compiler.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/compiler.dart b/dart/sdk/lib/_internal/compiler/implementation/compiler.dart
index 04191ab114fad3f1f794c6f44c85d6ceb838b783..9c154d5f4cfc8c0e544afd8a0f8540c9c588bbf8 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/compiler.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/compiler.dart
@@ -913,7 +913,13 @@ abstract class Compiler implements DiagnosticListener {
if (element.isClass()) {
ClassElement cls = element;
cls.ensureResolved(this);
- cls.forEachLocalMember(world.addToWorkList);
+ cls.forEachLocalMember((e) {
+ if (e.isSynthesized) {
+ // TODO(ahe): Work-around for http://dartbug.com/11205.
+ if (e.getLibrary().isPlatformLibrary) return;
+ }
+ world.addToWorkList(e);
+ });
world.registerInstantiatedClass(element, globalDependencies);
} else {
world.addToWorkList(element);
« no previous file with comments | « no previous file | dart/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698