Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1585)

Unified Diff: pkg/analyzer_plugin/lib/src/utilities/change_builder/change_builder_core.dart

Issue 3009563002: Make finalize() async and await adding imports, if any. (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer_plugin/lib/src/utilities/change_builder/change_builder_dart.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_plugin/lib/src/utilities/change_builder/change_builder_core.dart
diff --git a/pkg/analyzer_plugin/lib/src/utilities/change_builder/change_builder_core.dart b/pkg/analyzer_plugin/lib/src/utilities/change_builder/change_builder_core.dart
index e95657d4736f7fba8bbc0de1fec4719940657882..e996e68ea8a9ae48a40de75aaf2b5bfea661739b 100644
--- a/pkg/analyzer_plugin/lib/src/utilities/change_builder/change_builder_core.dart
+++ b/pkg/analyzer_plugin/lib/src/utilities/change_builder/change_builder_core.dart
@@ -50,7 +50,7 @@ class ChangeBuilderImpl implements ChangeBuilder {
FileEditBuilderImpl builder = await createFileEditBuilder(path);
buildFileEdit(builder);
_change.addFileEdit(builder.fileEdit);
- builder.finalize();
+ await builder.finalize();
}
/**
@@ -301,7 +301,7 @@ class FileEditBuilderImpl implements FileEditBuilder {
/**
* Finalize the source file edit that is being built.
*/
- void finalize() {
+ Future<Null> finalize() async {
// Nothing to do.
}
« no previous file with comments | « no previous file | pkg/analyzer_plugin/lib/src/utilities/change_builder/change_builder_dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698