| Index: tests/lib/mirrors/metadata_test.dart
|
| ===================================================================
|
| --- tests/lib/mirrors/metadata_test.dart (revision 23928)
|
| +++ tests/lib/mirrors/metadata_test.dart (working copy)
|
| @@ -2,7 +2,6 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| -@string @symbol
|
| library test.metadata_test;
|
|
|
| import 'dart:mirrors';
|
| @@ -51,14 +50,13 @@
|
| }
|
|
|
| MirrorSystem mirrors = currentMirrorSystem();
|
| - checkMetadata(mirrors.findLibrary(const Symbol('test.metadata_test')).first,
|
| - [string, symbol]);
|
| ClassMirror myClassMirror = reflectClass(MyClass);
|
| checkMetadata(myClassMirror, [symbol, string]);
|
| - ClosureMirror closure = reflect(main);
|
| - checkMetadata(closure.function, [symbol, string, symbol]);
|
| - closure = reflect(new MyClass().myMethod);
|
| - checkMetadata(closure.function, [string, symbol, string]);
|
| + LibraryMirror lib = mirrors.findLibrary(const Symbol('test.metadata_test')).first;
|
| + MethodMirror function = lib.functions[const Symbol('main')];
|
| + checkMetadata(function, [symbol, string, symbol]);
|
| + MethodMirror method = myClassMirror.methods[const Symbol('myMethod')];
|
| + checkMetadata(method, [string, symbol, string]);
|
|
|
| VariableMirror xMirror = myClassMirror.variables[const Symbol('x')];
|
| checkMetadata(xMirror, [hest, hest, symbol]);
|
|
|