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

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

Issue 2784673003: Add getStatementCompletion to the API spec (Closed)
Patch Set: Created 3 years, 9 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 8a29546788e4440cd86fe7385e94cbfea1106341..ddd15c7a39dae4123952d97d10eb01b3dd77ea26 100644
--- a/pkg/analysis_server/tool/spec/generated/java/AnalysisServer.java
+++ b/pkg/analysis_server/tool/spec/generated/java/AnalysisServer.java
@@ -387,6 +387,21 @@ public interface AnalysisServer {
public void edit_getRefactoring(String kind, String file, int offset, int length, boolean validateOnly, RefactoringOptions options, GetRefactoringConsumer consumer);
/**
+ * {@code edit.getStatementCompletion}
+ *
+ * Get the changes required to convert the partial statement at the given location into a
+ * syntactically valid statement. If the current statement is already valid the change will insert
+ * a newline plus appropriate indentation at the end of the line containing the offset and set the
+ * selectionOffset to the position corresponding to the end of the indent. If a change that makes
+ * the statement valid cannot be determined (perhaps because it has not yet been implemented) the
+ * statement will be considered already valid and the appropriate change returned.
+ *
+ * @param file The file containing the statement to be completed.
+ * @param offset The offset used to identify the statement to be completed.
+ */
+ public void edit_getStatementCompletion(String file, int offset, GetStatementCompletionConsumer consumer);
+
+ /**
* {@code edit.organizeDirectives}
*
* Organizes all of the directives - removes unused imports and sorts directives of the given Dart

Powered by Google App Engine
This is Rietveld 408576698