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

Unified Diff: test_reflectable/test/meta_reflectors_meta.dart

Issue 1391013008: Adds limited support for private classes. (Closed) Base URL: https://github.com/dart-lang/reflectable.git@master
Patch Set: Improved on treatment of uri Created 5 years, 2 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 | « test_reflectable/pubspec.yaml ('k') | test_reflectable/test/private_class_library.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test_reflectable/test/meta_reflectors_meta.dart
diff --git a/test_reflectable/test/meta_reflectors_meta.dart b/test_reflectable/test/meta_reflectors_meta.dart
index f44cd8d4d76ce214d0f5a538298f0fa2675dccb1..3b65acfcb2167bdda7b30d1dad35d39ca5a68454 100644
--- a/test_reflectable/test/meta_reflectors_meta.dart
+++ b/test_reflectable/test/meta_reflectors_meta.dart
@@ -29,7 +29,9 @@ class ScopeMetaReflector extends Reflectable {
Set<Reflectable> result = new Set<Reflectable>();
for (LibraryMirror library in libraries.values) {
for (DeclarationMirror declaration in library.declarations.values) {
- result.addAll(library.invoke(declaration.simpleName, [scope]));
+ if (declaration is MethodMirror) {
+ result.addAll(library.invoke(declaration.simpleName, [scope]));
+ }
}
}
return result;
« no previous file with comments | « test_reflectable/pubspec.yaml ('k') | test_reflectable/test/private_class_library.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698