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

Unified Diff: pkg/analysis_server/lib/src/services/correction/fix_internal.dart

Issue 574573002: Add SourceFileEdit.time field. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: tweak Created 6 years, 3 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/analysis_server/lib/src/services/correction/fix_internal.dart
diff --git a/pkg/analysis_server/lib/src/services/correction/fix_internal.dart b/pkg/analysis_server/lib/src/services/correction/fix_internal.dart
index 08239cf4ad1ebc4091280a044aff606c14787c3c..72f84cb00dabcf40cb69a2f2ff9e2a21276b5a5d 100644
--- a/pkg/analysis_server/lib/src/services/correction/fix_internal.dart
+++ b/pkg/analysis_server/lib/src/services/correction/fix_internal.dart
@@ -231,7 +231,10 @@ class FixProcessor {
if (fixFile == null) {
fixFile = file;
}
- SourceFileEdit fileEdit = new SourceFileEdit(file);
+ // prepare SourceFileEdit
+ SourceFileEdit fileEdit = new SourceFileEdit(
+ file,
+ unitElement.context.getModificationStamp(unitElement.source));
fileEdit.addAll(edits);
// prepare Change
String message = formatList(kind.message, args);

Powered by Google App Engine
This is Rietveld 408576698