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

Unified Diff: pkg/compiler/lib/src/dart_backend/renamer.dart

Issue 759193005: Add support for fields to the new dart backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 6 years, 1 month 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/dart_backend/renamer.dart
diff --git a/pkg/compiler/lib/src/dart_backend/renamer.dart b/pkg/compiler/lib/src/dart_backend/renamer.dart
index 414737e2ea38ab7de84f6feaff5444f20ad427ec..79b8c58ada7924070ebfacf2a638340c07772244 100644
--- a/pkg/compiler/lib/src/dart_backend/renamer.dart
+++ b/pkg/compiler/lib/src/dart_backend/renamer.dart
@@ -224,7 +224,7 @@ class PlaceholderRenamer {
Set<String> memberIdentifiers = new Set<String>();
Set<LocalPlaceholder> placeholders = functionScope.localPlaceholders;
- if (functionElement.enclosingClass != null) {
+ if (functionElement != null && functionElement.enclosingClass != null) {
functionElement.enclosingClass.forEachMember(
(enclosingClass, member) {
memberIdentifiers.add(member.name);

Powered by Google App Engine
This is Rietveld 408576698