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

Unified Diff: tests/lib/mirrors/fake_function_with_call_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/equality_test.dart ('k') | tests/lib/mirrors/generic_function_typedef_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/fake_function_with_call_test.dart
===================================================================
--- tests/lib/mirrors/fake_function_with_call_test.dart (revision 30028)
+++ tests/lib/mirrors/fake_function_with_call_test.dart (working copy)
@@ -6,15 +6,6 @@
import "package:expect/expect.dart";
-membersOf(ClassMirror cm) {
- var result = new Map();
- cm.declarations.forEach((k,v) {
- if(v is MethodMirror && !v.isConstructor) result[k] = v;
- if(v is VariableMirror) result[k] = v;
- });
- return result;
-}
-
class WannabeFunction {
int call(int a, int b) => a + b;
method(x) => x * x;
@@ -48,6 +39,6 @@
ClassMirror km = cm.type;
Expect.equals(reflectClass(WannabeFunction), km);
Expect.equals(#WannabeFunction, km.simpleName);
- Expect.equals(mm, km.declarations[#call]);
- Expect.setEquals([#call, #method], membersOf(km).keys);
+ Expect.equals(mm, km.members[#call]);
+ Expect.setEquals([#call, #method], km.members.keys);
}
« no previous file with comments | « tests/lib/mirrors/equality_test.dart ('k') | tests/lib/mirrors/generic_function_typedef_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698