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

Unified Diff: tests/lib/mirrors/metadata_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
Index: tests/lib/mirrors/metadata_test.dart
===================================================================
--- tests/lib/mirrors/metadata_test.dart (revision 30028)
+++ tests/lib/mirrors/metadata_test.dart (working copy)
@@ -54,17 +54,17 @@
ClassMirror myClassMirror = reflectClass(MyClass);
checkMetadata(myClassMirror, [symbol, string]);
LibraryMirror lib = mirrors.findLibrary(#test.metadata_test);
- MethodMirror function = lib.declarations[#main];
+ MethodMirror function = lib.functions[#main];
checkMetadata(function, [symbol, string, symbol]);
- MethodMirror method = myClassMirror.declarations[#myMethod];
+ MethodMirror method = myClassMirror.methods[#myMethod];
checkMetadata(method, [string, symbol, string]);
- method = myClassMirror.declarations[#myOtherMethod];
+ method = myClassMirror.methods[#myOtherMethod];
checkMetadata(method, []);
- VariableMirror xMirror = myClassMirror.declarations[#x];
+ VariableMirror xMirror = myClassMirror.variables[#x];
checkMetadata(xMirror, [hest, hest, symbol]);
- VariableMirror yMirror = myClassMirror.declarations[#y];
+ VariableMirror yMirror = myClassMirror.variables[#y];
checkMetadata(yMirror, []);
// TODO(ahe): Test local functions.
« no previous file with comments | « tests/lib/mirrors/metadata_constructed_constant_test.dart ('k') | tests/lib/mirrors/method_mirror_properties_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698