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

Unified Diff: pkg/compiler/lib/src/deferred_load.dart

Issue 1132783002: Add Accessor, Getter, and Setter elements. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 5 years, 7 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: pkg/compiler/lib/src/deferred_load.dart
diff --git a/pkg/compiler/lib/src/deferred_load.dart b/pkg/compiler/lib/src/deferred_load.dart
index 5a02f036f51e3709186bcee8cca970077649de1f..2b0b7fc7882639f7f25ce9534caa4f05da44f05f 100644
--- a/pkg/compiler/lib/src/deferred_load.dart
+++ b/pkg/compiler/lib/src/deferred_load.dart
@@ -25,6 +25,7 @@ import 'js_backend/js_backend.dart' show
JavaScriptBackend;
import 'elements/elements.dart' show
+ AccessorElement,
AstElement,
ClassElement,
Element,
@@ -240,7 +241,7 @@ class DeferredLoadTask extends CompilerTask {
element = element.enclosingClass;
}
if (element.isAccessor) {
- element = (element as FunctionElement).abstractField;
+ element = (element as AccessorElement).abstractField;
}
return library.getImportsFor(element);
}
« no previous file with comments | « pkg/compiler/lib/src/dart_backend/placeholder_collector.dart ('k') | pkg/compiler/lib/src/elements/elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698