Index: pkg/analyzer_cli/lib/src/build_mode.dart |
diff --git a/pkg/analyzer_cli/lib/src/build_mode.dart b/pkg/analyzer_cli/lib/src/build_mode.dart |
index 6cbb0f20ab48b3fa93e7b3a1a543cdc9f2b3bafb..2d6d3da02bba622a59a47bcfd2e50cb68308ef3a 100644 |
--- a/pkg/analyzer_cli/lib/src/build_mode.dart |
+++ b/pkg/analyzer_cli/lib/src/build_mode.dart |
@@ -297,6 +297,7 @@ class AnalyzerWorkerLoop extends SyncWorkerLoop { |
*/ |
void analyze(CommandLineOptions options) { |
new BuildMode(options, new AnalysisStats()).analyze(); |
+ AnalysisEngine.instance.clearCaches(); |
} |
/** |