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

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

Issue 68113022: Remove use of deprecated mirror functions from Polymer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
« no previous file with comments | « pkg/polymer/lib/src/instance.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/loader.dart
diff --git a/pkg/polymer/lib/src/loader.dart b/pkg/polymer/lib/src/loader.dart
index 47fa3108ddbce493472995e9056357d16d8ff0f3..5ee0915077cb1cad0399797b7ce862ea24fc8374 100644
--- a/pkg/polymer/lib/src/loader.dart
+++ b/pkg/polymer/lib/src/loader.dart
@@ -171,11 +171,11 @@ void _loadLibrary(String uriString) {
}
// Search top-level functions marked with @initMethod
- for (var f in lib.functions.values) {
+ for (var f in lib.declarations.values.where((d) => d is MethodMirror)) {
_maybeInvoke(lib, f);
}
- for (var c in lib.classes.values) {
+ for (var c in lib.declarations.values.where((d) => d is ClassMirror)) {
// Search for @CustomTag on classes
for (var m in c.metadata) {
var meta = m.reflectee;
« no previous file with comments | « pkg/polymer/lib/src/instance.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698