getAssistRequest method

  1. @override
Future<AssistRequest> getAssistRequest(
  1. EditGetAssistsParams parameters
)
override

Return the assist request that should be passes to the contributors returned from getAssistContributors.

Throw a RequestFailure if the request could not be created.

Implementation

@override
Future<AssistRequest> getAssistRequest(
    EditGetAssistsParams parameters) async {
  var path = parameters.file;
  var result = await getResolvedUnitResult(path);
  return DartAssistRequestImpl(
      resourceProvider, parameters.offset, parameters.length, result);
}