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

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

Issue 1810103003: Analyzer directory recursing (tk 2) (#25129). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: re-apply tk 1 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
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 418db256480b64919ab045f12693df39457f9286..fd173a369124f365f47de7fb40cd3c18b9f7dd46 100644
--- a/pkg/analyzer_cli/lib/src/package_analyzer.dart
+++ b/pkg/analyzer_cli/lib/src/package_analyzer.dart
@@ -31,6 +31,7 @@ import 'package:path/path.dart' as pathos;
*/
class PackageAnalyzer {
final CommandLineOptions options;
+ final AnalysisStats stats;
String packagePath;
String packageLibPath;
@@ -39,7 +40,7 @@ class PackageAnalyzer {
InternalAnalysisContext context;
final List<Source> explicitSources = <Source>[];
- PackageAnalyzer(this.options);
+ PackageAnalyzer(this.options, this.stats);
/**
* Perform package analysis according to the given [options].
@@ -181,11 +182,13 @@ class PackageAnalyzer {
ErrorFormatter formatter = new ErrorFormatter(
sink,
options,
+ stats,
(AnalysisError error) =>
AnalyzerImpl.processError(error, options, context));
for (Source source in explicitSources) {
AnalysisErrorInfo errorInfo = context.getErrors(source);
formatter.formatErrors([errorInfo]);
}
+ stats.print(sink);
}
}

Powered by Google App Engine
This is Rietveld 408576698