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

Unified Diff: pkg/analyzer_cli/lib/src/package_analyzer.dart

Issue 1770323003: Fix summary generation in "package-summary-only" mode. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_cli/lib/src/package_analyzer.dart
diff --git a/pkg/analyzer_cli/lib/src/package_analyzer.dart b/pkg/analyzer_cli/lib/src/package_analyzer.dart
index 14eebd0bb7599b78c13cc670acdc226d062d219e..418db256480b64919ab045f12693df39457f9286 100644
--- a/pkg/analyzer_cli/lib/src/package_analyzer.dart
+++ b/pkg/analyzer_cli/lib/src/package_analyzer.dart
@@ -94,12 +94,13 @@ class PackageAnalyzer {
// Write summary for Dart libraries.
if (options.packageSummaryOutput != null) {
PackageBundleAssembler assembler = new PackageBundleAssembler();
- for (Source source in context.librarySources) {
+ for (Source source in explicitSources) {
+ if (context.computeKindOf(source) != SourceKind.LIBRARY) {
+ continue;
+ }
if (pathos.isWithin(packageLibPath, source.fullName)) {
LibraryElement libraryElement = context.computeLibraryElement(source);
- if (libraryElement != null) {
- assembler.serializeLibraryElement(libraryElement);
- }
+ assembler.serializeLibraryElement(libraryElement);
}
}
// Write the whole package bundle.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698