handleAffectedFiles method
Handles files that might have been affected by a content change of one or more files. The implementation may check if these files should be analyzed, do such analysis, and send diagnostics.
By default invokes analyzeFiles only for files that are analyzed in
this analysisContext
.
Implementation
Future<void> handleAffectedFiles({
required AnalysisContext analysisContext,
required List<String> paths,
}) async {
var analyzedPaths = paths
.where(analysisContext.contextRoot.isAnalyzed)
.toList(growable: false);
await analyzeFiles(
analysisContext: analysisContext,
paths: analyzedPaths,
);
}