OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 /// Test of [ParameterMirror]. | 5 /// Test of [ParameterMirror]. |
6 library test.parameter_test; | 6 library test.parameter_test; |
7 | 7 |
8 @MirrorsUsed(targets: 'test.parameter_test', override: '*') | 8 @MirrorsUsed(targets: 'test.parameter_test', override: '*') |
9 import 'dart:mirrors'; | 9 import 'dart:mirrors'; |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 expect('[Parameter(s(z) in s(B.bar),' | 41 expect('[Parameter(s(z) in s(B.bar),' |
42 ' type = Class(s(int) in s(dart.core), top-level)), ' | 42 ' type = Class(s(int) in s(dart.core), top-level)), ' |
43 'Parameter(s(x) in s(B.bar),' | 43 'Parameter(s(x) in s(B.bar),' |
44 ' type = Type(s(dynamic), top-level))]', | 44 ' type = Type(s(dynamic), top-level))]', |
45 barConstructor.parameters); | 45 barConstructor.parameters); |
46 expect('Class(s(B) in s(test.parameter_test), top-level)', | 46 expect('Class(s(B) in s(test.parameter_test), top-level)', |
47 barConstructor.returnType); | 47 barConstructor.returnType); |
48 | 48 |
49 print(constructors); | 49 print(constructors); |
50 } | 50 } |
OLD | NEW |