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

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..2df3e6c69645753108de4e54263c2e331f5d02c1 100644
--- a/lib/compiler/implementation/dart_backend/backend.dart
+++ b/lib/compiler/implementation/dart_backend/backend.dart
@@ -218,6 +218,8 @@ 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.
+ element.parseNode(compiler);
Anton Muhin 2012/09/26 13:49:47 Feels somewhat like a hack. May you add a TODO to
Roman 2012/09/26 14:00:34 Done.
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