getFixesRequest method

  1. @override
Future<FixesRequest> getFixesRequest(
  1. EditGetFixesParams parameters
)
override

Return the fixes request that should be passes to the contributors returned from getFixContributors.

Throw a RequestFailure if the request could not be created.

Implementation

@override
Future<FixesRequest> getFixesRequest(EditGetFixesParams parameters) async {
  var path = parameters.file;
  var offset = parameters.offset;
  var result = await getResolvedUnitResult(path);
  return DartFixesRequestImpl(
      resourceProvider, offset, _getErrors(offset, result), result);
}