afterNewContextCollection method
Future<void>
afterNewContextCollection({
- required AnalysisContextCollection contextCollection,
override
This method is invoked when a new instance of AnalysisContextCollection
is created, so the plugin can perform initial analysis of analyzed files.
By default analyzes every AnalysisContext
with analyzeFiles.
Implementation
@override
Future<void> afterNewContextCollection({
required AnalysisContextCollection contextCollection,
}) {
contextCollection.contexts.forEach(_initOptions);
return super
.afterNewContextCollection(contextCollection: contextCollection);
}