computeFixes method

  1. @override
Future<void> computeFixes(
  1. covariant DartFixesRequest request,
  2. FixCollector collector
)
override

Contribute fixes for the location in the file specified by the given request into the given collector.

Implementation

@override
Future<void> computeFixes(
    DartFixesRequest request, FixCollector collector) async {
  this.request = request;
  this.collector = collector;
  try {
    for (var error in request.errorsToFix) {
      await computeFixesForError(error);
    }
  } finally {
    this.request = null;
    this.collector = null;
  }
}