| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 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 | 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 import 'package:front_end/src/base/source.dart'; | 5 import 'package:front_end/src/base/source.dart'; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Information about a single top-level declaration. | 8 * Information about a single top-level declaration. |
| 9 */ | 9 */ |
| 10 class TopLevelDeclaration { | 10 class TopLevelDeclaration { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 /** | 24 /** |
| 25 * The declaring source. | 25 * The declaring source. |
| 26 */ | 26 */ |
| 27 final Source source; | 27 final Source source; |
| 28 | 28 |
| 29 /** | 29 /** |
| 30 * The declaration. | 30 * The declaration. |
| 31 */ | 31 */ |
| 32 final TopLevelDeclaration declaration; | 32 final TopLevelDeclaration declaration; |
| 33 | 33 |
| 34 TopLevelDeclarationInSource(this.source, this.declaration); | 34 /** |
| 35 * Is `true` if the [declaration] is exported, not declared in the [source]. |
| 36 */ |
| 37 final bool isExported; |
| 38 |
| 39 TopLevelDeclarationInSource(this.source, this.declaration, this.isExported); |
| 35 | 40 |
| 36 @override | 41 @override |
| 37 String toString() => '($source, $declaration)'; | 42 String toString() => '($source, $declaration, $isExported)'; |
| 38 } | 43 } |
| 39 | 44 |
| 40 /** | 45 /** |
| 41 * Kind of a top-level declaration. | 46 * Kind of a top-level declaration. |
| 42 * | 47 * |
| 43 * We don't need it to be precise, just enough to support quick fixes. | 48 * We don't need it to be precise, just enough to support quick fixes. |
| 44 */ | 49 */ |
| 45 enum TopLevelDeclarationKind { type, function, variable } | 50 enum TopLevelDeclarationKind { type, function, variable } |
| OLD | NEW |