handleAnalysisGetNavigation method

  1. @override
Future<AnalysisGetNavigationResult> handleAnalysisGetNavigation(
  1. AnalysisGetNavigationParams parameters
)
override

Handle an 'analysis.getNavigation' request.

Throw a RequestFailure if the request could not be handled.

Implementation

@override
Future<AnalysisGetNavigationResult> handleAnalysisGetNavigation(
    AnalysisGetNavigationParams parameters) async {
  var path = parameters.file;
  var request = await getNavigationRequest(parameters);
  var generator = NavigationGenerator(getNavigationContributors(path));
  var result = generator.generateNavigationResponse(request);
  result.sendNotifications(channel);
  return result.result;
}