Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library test_lib.bar; | 5 library test_lib.bar; |
| 6 | 6 |
| 7 import 'test_lib.dart'; | 7 import 'test_lib.dart'; |
| 8 import 'test_lib_foo.dart'; | |
| 8 | 9 |
| 9 /* | 10 /* |
| 10 * Normal comment for class C. | 11 * Normal comment for class C. |
| 11 */ | 12 */ |
| 12 class C { | 13 class C { |
| 13 } | 14 } |
| 14 | 15 |
| 15 /// [input] is of type [C] returns an [A]. | 16 /// Processes an [input] of type [C] instance for testing. |
|
kevmoo
2014/04/20 21:34:54
The method and the typedef have the same signature
| |
| 16 A generateFoo(C input) { | 17 /// |
| 18 /// To eliminate import warnings for [A] and to test typedefs. | |
| 19 /// | |
| 20 /// It's important that the [List<A>] for param [listOfA] is not empty. | |
| 21 A testMethod(C input, List<A> listOfA, B aBee) { | |
| 17 throw 'noop'; | 22 throw 'noop'; |
| 18 } | 23 } |
| 19 | 24 |
| 20 /// Processes a [C] instance for testing. | 25 /// Processes an [input] of type [C] instance for testing. |
| 21 /// | 26 /// |
| 22 /// To eliminate import warnings for [A] and to test typedefs. | 27 /// To eliminate import warnings for [A] and to test typedefs. |
| 23 typedef A AnATransformer(C other); | 28 /// |
| 29 /// It's important that the [List<A>] for param [listOfA] is not empty. | |
| 30 typedef A testTypedef(C other, List<A> listOfA, B aBee); | |
| OLD | NEW |