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

Side by Side Diff: pkg/analyzer_plugin/lib/utilities/change_builder/change_builder_core.dart

Issue 2962223002: Remove timeStamp from the ChangeBuilder API (Closed)
Patch Set: Created 3 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:async'; 5 import 'dart:async';
6 6
7 import 'package:analyzer/src/generated/source.dart'; 7 import 'package:analyzer/src/generated/source.dart';
8 import 'package:analyzer_plugin/protocol/protocol_common.dart'; 8 import 'package:analyzer_plugin/protocol/protocol_common.dart';
9 import 'package:analyzer_plugin/src/utilities/change_builder/change_builder_core .dart'; 9 import 'package:analyzer_plugin/src/utilities/change_builder/change_builder_core .dart';
10 10
(...skipping 10 matching lines...) Expand all
21 21
22 /** 22 /**
23 * Return the source change that was built. The source change will not be 23 * Return the source change that was built. The source change will not be
24 * complete until all of the futures returned by [addFileEdit] have completed. 24 * complete until all of the futures returned by [addFileEdit] have completed.
25 */ 25 */
26 SourceChange get sourceChange; 26 SourceChange get sourceChange;
27 27
28 /** 28 /**
29 * Use the [buildFileEdit] function to create a collection of edits to the 29 * Use the [buildFileEdit] function to create a collection of edits to the
30 * file with the given [path]. The edits will be added to the source change 30 * file with the given [path]. The edits will be added to the source change
31 * that is being built. The [timeStamp] is the time at which the file was last 31 * that is being built.
32 * modified and is used by clients to ensure that it is safe to apply the
33 * edits.
34 */ 32 */
35 Future<Null> addFileEdit( 33 Future<Null> addFileEdit(
36 String path, int timeStamp, void buildFileEdit(FileEditBuilder builder)); 34 String path, void buildFileEdit(FileEditBuilder builder));
37 35
38 /** 36 /**
39 * Set the selection for the change being built to the given [position]. 37 * Set the selection for the change being built to the given [position].
40 */ 38 */
41 void setSelection(Position position); 39 void setSelection(Position position);
42 } 40 }
43 41
44 /** 42 /**
45 * A builder used to build a [SourceEdit] as part of a [SourceFileEdit]. 43 * A builder used to build a [SourceEdit] as part of a [SourceFileEdit].
46 * 44 *
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 * Add the given [string] to the content of the current edit. 174 * Add the given [string] to the content of the current edit.
177 */ 175 */
178 void write(String string); 176 void write(String string);
179 177
180 /** 178 /**
181 * Add the given [string] to the content of the current edit and then add an 179 * Add the given [string] to the content of the current edit and then add an
182 * end-of-line marker. 180 * end-of-line marker.
183 */ 181 */
184 void writeln([String string]); 182 void writeln([String string]);
185 } 183 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698