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

Unified Diff: pkg/analysis_server/tool/spec/generated/java/AnalysisServer.java

Issue 1258563008: Proposal for the 'edit.organizeDirectives' request. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Tweaks for review comments. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/tool/spec/generated/java/AnalysisServer.java
diff --git a/pkg/analysis_server/tool/spec/generated/java/AnalysisServer.java b/pkg/analysis_server/tool/spec/generated/java/AnalysisServer.java
index c398e4df2b06fdac7c395a5fb4d0cbaca1bd47b7..c183dac8ba5bdc4574eaf6fdbda8cdb2fc8e039d 100644
--- a/pkg/analysis_server/tool/spec/generated/java/AnalysisServer.java
+++ b/pkg/analysis_server/tool/spec/generated/java/AnalysisServer.java
@@ -351,6 +351,23 @@ public interface AnalysisServer {
public void edit_getRefactoring(String kind, String file, int offset, int length, boolean validateOnly, RefactoringOptions options, GetRefactoringConsumer consumer);
/**
+ * {@code edit.organizeDirectives}
+ *
+ * Organizes all of the directives - removes unused imports and sorts directives of the given Dart
+ * file according to the Dart Style Guide.
+ *
+ * If a request is made for a file that does not exist, does not belong to an analysis root or is
+ * not a Dart file, FILE_NOT_ANALYZED will be generated.
+ *
+ * If directives of the Dart file cannot be organized, for example because it has scan or parse
+ * errors, or by other reasons, ORGANIZE_DIRECTIVES_ERROR will be generated. The message will
+ * provide datails about the reason.
+ *
+ * @param file The Dart file to organize directives in.
+ */
+ public void edit_organizeDirectives(String file, OrganizeDirectivesConsumer consumer);
+
+ /**
* {@code edit.sortMembers}
*
* Sort all of the directives, unit and class members of the given Dart file.

Powered by Google App Engine
This is Rietveld 408576698