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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/lib/src/dart/analysis/top_level_declaration.dart
diff --git a/pkg/analyzer/lib/src/dart/analysis/top_level_declaration.dart b/pkg/analyzer/lib/src/dart/analysis/top_level_declaration.dart
index 1ec5d068c3d7d21920f4017a3f349692f6e66106..c45e0e0496cd9152b2bbc47926c393d3520f25fc 100644
--- a/pkg/analyzer/lib/src/dart/analysis/top_level_declaration.dart
+++ b/pkg/analyzer/lib/src/dart/analysis/top_level_declaration.dart
@@ -33,7 +33,7 @@ class TopLevelLibraryDeclarations {
/**
* Top-level declarations in the export namespace of the library.
*/
- final List<TopLevelDeclaration> declarations = [];
+ final List<TopLevelDeclaration> declarations;
- TopLevelLibraryDeclarations(this.source);
+ TopLevelLibraryDeclarations(this.source, this.declarations);
}

Powered by Google App Engine
This is Rietveld 408576698