| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2016, 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 import 'package:front_end/src/base/source.dart'; |
| 6 |
| 7 /** |
| 8 * An object with which an analysis result can be associated. |
| 9 * |
| 10 * Clients may implement this class when creating new kinds of targets. |
| 11 * Instances of this type are used in hashed data structures, so subtypes are |
| 12 * required to correctly implement [==] and [hashCode]. |
| 13 */ |
| 14 abstract class AnalysisTarget { |
| 15 /** |
| 16 * If this target is associated with a library, return the source of the |
| 17 * library's defining compilation unit; otherwise return `null`. |
| 18 */ |
| 19 Source get librarySource; |
| 20 |
| 21 /** |
| 22 * Return the source associated with this target, or `null` if this target is |
| 23 * not associated with a source. |
| 24 */ |
| 25 Source get source; |
| 26 } |
| OLD | NEW |