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

Unified Diff: tests/lib/mirrors/return_type_test.dart

Issue 62373008: - Reverting mirror changes. (Closed) Base URL: http://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 | « tests/lib/mirrors/removed_api_test.dart ('k') | tests/lib/mirrors/static_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/return_type_test.dart
===================================================================
--- tests/lib/mirrors/return_type_test.dart (revision 30028)
+++ tests/lib/mirrors/return_type_test.dart (working copy)
@@ -20,16 +20,8 @@
// List<int> j() {}
}
-methodsOf(ClassMirror cm) {
- var result = new Map();
- cm.declarations.forEach((k,v) {
- if(v is MethodMirror && v.isRegularMethod) result[k] = v;
- });
- return result;
-}
-
main() {
- var methods = methodsOf(reflectClass(B));
+ var methods = reflectClass(B).methods;
expect('{f: Method(s(f) in s(B)), '
'g: Method(s(g) in s(B)), '
@@ -45,4 +37,6 @@
expect('Class(s(int) in s(dart.core), top-level)', g.returnType);
expect('Class(s(List) in s(dart.core), top-level)', h.returnType);
expect('Class(s(B) in s(test.return_type_test), top-level)', i.returnType);
+
+ print(methods);
}
« no previous file with comments | « tests/lib/mirrors/removed_api_test.dart ('k') | tests/lib/mirrors/static_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698