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

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

Issue 2784673003: Add getStatementCompletion to the API spec (Closed)
Patch Set: Add experimental attribute 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..175d54dd69d8072992a8f8eb25cfc16159213dc9 100644
--- a/pkg/analysis_server/tool/spec/generated/java/AnalysisServer.java
+++ b/pkg/analysis_server/tool/spec/generated/java/AnalysisServer.java
@@ -387,6 +387,20 @@ 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. 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
« no previous file with comments | « pkg/analysis_server/test/integration/protocol_matchers.dart ('k') | pkg/analysis_server/tool/spec/spec_input.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698