contentChanged method
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,
);
});
}
}