| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 mirrors_util; | 5 library mirrors_util; |
| 6 | 6 |
| 7 import 'dart:collection' show Queue; |
| 8 |
| 7 // TODO(rnystrom): Use "package:" URL (#4968). | 9 // TODO(rnystrom): Use "package:" URL (#4968). |
| 8 import 'mirrors.dart'; | 10 import 'mirrors.dart'; |
| 9 | 11 |
| 10 //------------------------------------------------------------------------------ | 12 //------------------------------------------------------------------------------ |
| 11 // Utility functions for using the Mirror API | 13 // Utility functions for using the Mirror API |
| 12 //------------------------------------------------------------------------------ | 14 //------------------------------------------------------------------------------ |
| 13 | 15 |
| 14 /** | 16 /** |
| 15 * Returns an iterable over the type declarations directly inheriting from | 17 * Returns an iterable over the type declarations directly inheriting from |
| 16 * the declaration of this type. | 18 * the declaration of this type. |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 // * Foo | 152 // * Foo |
| 151 // */ | 153 // */ |
| 152 // as "\nFoo\n" and not as "\nFoo\n ". | 154 // as "\nFoo\n" and not as "\nFoo\n ". |
| 153 sb.add(line); | 155 sb.add(line); |
| 154 } | 156 } |
| 155 } | 157 } |
| 156 return sb.toString(); | 158 return sb.toString(); |
| 157 } | 159 } |
| 158 throw new ArgumentError('Invalid comment $comment'); | 160 throw new ArgumentError('Invalid comment $comment'); |
| 159 } | 161 } |
| OLD | NEW |