mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
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:
parent
66693ea6e2
commit
c619413fef
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue