contentChanged method

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

Handle the fact that files with paths were changed.

Implementation

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