sendNavigationNotification method

  1. @override
Future<void> sendNavigationNotification(
  1. String path
)
override

Send a navigation notification for the file with the given path to the server.

Implementation

@override
Future<void> sendNavigationNotification(String path) async {
  try {
    var request =
        await getNavigationRequest(AnalysisGetNavigationParams(path, -1, -1));
    var generator = NavigationGenerator(getNavigationContributors(path));
    var generatorResult = generator.generateNavigationNotification(request);
    generatorResult.sendNotifications(channel);
  } on RequestFailure {
    // If we couldn't analyze the file, then don't send a notification.
  }
}