sendOccurrencesNotification method
If the plugin provides occurrences information, send an occurrences
notification for the file with the given path
to the server.
Implementation
@override
Future<void> sendOccurrencesNotification(String path) async {
try {
var request = await getOccurrencesRequest(path);
var generator = OccurrencesGenerator(getOccurrencesContributors(path));
var generatorResult = generator.generateOccurrencesNotification(request);
generatorResult.sendNotifications(channel);
} on RequestFailure {
// If we couldn't analyze the file, then don't send a notification.
}
}