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

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

Issue 10990053: [dart2dart] Force-compile top-level elements in libraries to get local members correctly. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | tests/compiler/dart2js/dart_backend_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/dart_backend/backend.dart
diff --git a/lib/compiler/implementation/dart_backend/backend.dart b/lib/compiler/implementation/dart_backend/backend.dart
index 41bf6e975620d1f44f96f004318533d54e04575a..3f8ed70ce27dabf7ef29a76c360af150f6d3c7b6 100644
--- a/lib/compiler/implementation/dart_backend/backend.dart
+++ b/lib/compiler/implementation/dart_backend/backend.dart
@@ -218,6 +218,10 @@ class DartBackend extends Backend {
for (final element in library.localMembers) {
if (element is ClassElement) {
ClassElement classElement = element;
+ // Make sure we parsed the class to initialize its local members.
+ // TODO(smok): Figure out if there is a better way to fill local
+ // members.
+ element.parseNode(compiler);
for (final member in classElement.localMembers) {
final name = member.name.slowToString();
// Skip operator names.
« no previous file with comments | « no previous file | tests/compiler/dart2js/dart_backend_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698