handleAffectedFiles method

Future<void> handleAffectedFiles({
  1. required AnalysisContext analysisContext,
  2. required List<String> paths,

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.


Future<void> handleAffectedFiles({
  required AnalysisContext analysisContext,
  required List<String> paths,
}) async {
  final analyzedPaths = paths
      .toList(growable: false);

  await analyzeFiles(
    analysisContext: analysisContext,
    paths: analyzedPaths,