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

Unified Diff: pkg/polymer/lib/src/reflected_type.dart

Issue 105453004: Remove use of deprecated mirror API from code that only runs against dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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_extra/mirror_printer_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/reflected_type.dart
diff --git a/pkg/polymer/lib/src/reflected_type.dart b/pkg/polymer/lib/src/reflected_type.dart
index ad11ffb61f0af33c504f97c7431c71d3470e6c1a..6486abc4659a396f40e2c07c8875b920844df430 100644
--- a/pkg/polymer/lib/src/reflected_type.dart
+++ b/pkg/polymer/lib/src/reflected_type.dart
@@ -25,7 +25,7 @@ final LibraryMirror _jsHelper =
final Symbol _mangledNameField = () {
var jsClassMirrorMirror = reflect(reflectClass(ClassMirror)).type;
- for (var name in jsClassMirrorMirror.variables.keys) {
+ for (var name in jsClassMirrorMirror.declarations.keys) {
if (MirrorSystem.getName(name) == '_mangledName') return name;
}
}();
« no previous file with comments | « no previous file | tests/compiler/dart2js_extra/mirror_printer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698