Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(658)

Side by Side Diff: pkg/analyzer/lib/src/dart/analysis/top_level_declaration.dart

Issue 2554113003: Implement 'Import Library' Quick Fix for project libraries using TopLevelDeclarationInSource. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/dart/analysis/driver.dart ('k') | pkg/analyzer/test/src/dart/analysis/driver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698