Add a method to BulkFixProcessor to compute changes to pubspec
Change-Id: I1c743df3780fea3f8cf930dad5085b4d2388fca8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/330520 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Keerti Parthasarathy <keertip@google.com>
This commit is contained in:
committed by
Commit Queue
parent
279f6d77ae
commit
9aca2789bb
@@ -517,9 +517,14 @@ public interface AnalysisServer {
|
||||
* difference is that in test mode the fix processor will look for a configuration file that
|
||||
* can modify the content of the data file used to compute the fixes when data-driven fixes
|
||||
* are being considered. If this field is omitted the flag defaults to false.
|
||||
* @param updatePubspec A flag indicating whether to validate that the dependencies used by the
|
||||
* included files are listed in the pubspec file. If specified, the fix processor will
|
||||
* compute the set of packages imported in the source and check to see if they are listed in
|
||||
* the corresponding pubspec file, and compute the fixes, if any. If this field is omitted
|
||||
* the flag defaults to false.
|
||||
* @param codes A list of diagnostic codes to be fixed.
|
||||
*/
|
||||
public void edit_bulkFixes(List<String> included, boolean inTestMode, List<String> codes, BulkFixesConsumer consumer);
|
||||
public void edit_bulkFixes(List<String> included, boolean inTestMode, boolean updatePubspec, List<String> codes, BulkFixesConsumer consumer);
|
||||
|
||||
/**
|
||||
* {@code edit.format}
|
||||
|
||||
Reference in New Issue
Block a user