contentChanged method

Future<void> contentChanged(
  1. List<String> paths
)
inherited

Handle the fact that files with paths were changed.

Implementation

Future<void> contentChanged(List<String> paths) async {
  final contextCollection = _contextCollection;
  if (contextCollection != null) {
    await _forAnalysisContexts(contextCollection, (analysisContext) async {
      for (final path in paths) {
        analysisContext.changeFile(path);
      }
      final affected = await analysisContext.applyPendingFileChanges();
      await handleAffectedFiles(
        analysisContext: analysisContext,
        paths: affected,
      );
    });
  }
}