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

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

Issue 63563003: - 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
Index: tests/lib/mirrors/generic_function_typedef_test.dart
===================================================================
--- tests/lib/mirrors/generic_function_typedef_test.dart (revision 30026)
+++ tests/lib/mirrors/generic_function_typedef_test.dart (working copy)
@@ -25,10 +25,10 @@
main() {
TypeMirror dynamicMirror = currentMirrorSystem().dynamicType;
- TypedefMirror predicateOfNum = reflectClass(C).variables[#predicateOfNum].type;
- TypedefMirror transformOfString = reflectClass(C).variables[#transformOfString].type;
- TypedefMirror transformOfR = reflectClass(C).variables[#transformOfR].type;
- TypedefMirror transformOfDouble = reflect(new C<double>()).type.variables[#transformOfR].type;
+ TypedefMirror predicateOfNum = (reflectClass(C).declarations[#predicateOfNum] as VariableMirror).type;
+ TypedefMirror transformOfString = (reflectClass(C).declarations[#transformOfString] as VariableMirror).type;
+ TypedefMirror transformOfR = (reflectClass(C).declarations[#transformOfR] as VariableMirror).type;
+ TypedefMirror transformOfDouble = (reflect(new C<double>()).type.declarations[#transformOfR] as VariableMirror).type;
TypeVariableMirror tFromGenericPredicate = reflectTypeDeclaration(GenericPredicate).typeVariables[0];
TypeVariableMirror sFromGenericTransform = reflectTypeDeclaration(GenericTransform).typeVariables[0];
« no previous file with comments | « tests/lib/mirrors/fake_function_with_call_test.dart ('k') | tests/lib/mirrors/generic_type_mirror_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698