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

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

Issue 2544883003: Implement 'topLevelLibraryDeclarations' getter to return all libraries with exported top-level decl… (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 15 matching lines...) Expand all
26 */ 26 */
27 class TopLevelLibraryDeclarations { 27 class TopLevelLibraryDeclarations {
28 /** 28 /**
29 * The source of the library. 29 * The source of the library.
30 */ 30 */
31 final Source source; 31 final Source source;
32 32
33 /** 33 /**
34 * Top-level declarations in the export namespace of the library. 34 * Top-level declarations in the export namespace of the library.
35 */ 35 */
36 final List<TopLevelDeclaration> declarations = []; 36 final List<TopLevelDeclaration> declarations;
37 37
38 TopLevelLibraryDeclarations(this.source); 38 TopLevelLibraryDeclarations(this.source, this.declarations);
39 } 39 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698