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

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

Issue 2962223002: Remove timeStamp from the ChangeBuilder API (Closed)
Patch Set: Created 3 years, 6 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
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 40b3b344435c76b94cff5d8a4f30ca5d5bbc1535..66860037644c9979a7c26d9b93880d5ee2c7f362 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
@@ -44,9 +44,9 @@ class ChangeBuilderImpl implements ChangeBuilder {
}
@override
- Future<Null> addFileEdit(String path, int fileStamp,
- void buildFileEdit(FileEditBuilder builder)) async {
- FileEditBuilderImpl builder = await createFileEditBuilder(path, fileStamp);
+ Future<Null> addFileEdit(
+ String path, void buildFileEdit(FileEditBuilder builder)) async {
+ FileEditBuilderImpl builder = await createFileEditBuilder(path);
buildFileEdit(builder);
_change.addFileEdit(builder.fileEdit);
builder.finalize();
@@ -56,9 +56,8 @@ class ChangeBuilderImpl implements ChangeBuilder {
* Create and return a [FileEditBuilder] that can be used to build edits to
* the file with the given [path] and [timeStamp].
*/
- Future<FileEditBuilderImpl> createFileEditBuilder(
- String path, int timeStamp) async {
- return new FileEditBuilderImpl(this, path, timeStamp);
+ Future<FileEditBuilderImpl> createFileEditBuilder(String path) async {
+ return new FileEditBuilderImpl(this, path, 0);
}
/**

Powered by Google App Engine
This is Rietveld 408576698