OLD | NEW |
| (Empty) |
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 | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 library docgen.models.mirror_based; | |
6 | |
7 import '../exports/source_mirrors.dart'; | |
8 | |
9 /// Docgen representation of an item to be documented, that wraps around a | |
10 /// dart2js mirror. | |
11 abstract class MirrorBased<TMirror extends DeclarationMirror> { | |
12 /// The original dart2js mirror around which this object wraps. | |
13 TMirror get mirror; | |
14 | |
15 /// Return an informative [Object.toString] for debugging. | |
16 String toString() => "${super.toString()} - $mirror"; | |
17 } | |
OLD | NEW |