Fix for unawaited future in assists.

R=brianwilkerson@google.com

Change-Id: Ie297476866d380d7938896e18cb5ffd5fff9fb1f
Reviewed-on: https://dart-review.googlesource.com/68762
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
Konstantin Shcheglov 2018-08-07 19:49:10 +00:00
parent 66693ea6e2
commit c619413fef

View file

@ -1543,7 +1543,7 @@ class AssistProcessor {
var stateType = stateClass.type.instantiate([widgetClassElement.type]);
DartChangeBuilder changeBuilder = new DartChangeBuilder(session);
await changeBuilder.addFileEdit(file, (DartFileEditBuilder builder) async {
await changeBuilder.addFileEdit(file, (DartFileEditBuilder builder) {
builder.addReplacement(range.node(superclass), (builder) {
builder.writeType(statefulWidgetClass.type);
});