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

Unified Diff: pkg/analysis_server/tool/spec/spec_input.html

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
« no previous file with comments | « pkg/analysis_server/tool/spec/generated/java/AnalysisServer.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/tool/spec/spec_input.html
diff --git a/pkg/analysis_server/tool/spec/spec_input.html b/pkg/analysis_server/tool/spec/spec_input.html
index e2a4c158ba843ebfcb417a9cc103687a464a1aa8..3ff2874d470a17d3087de8834e63779cb5ef9e13 100644
--- a/pkg/analysis_server/tool/spec/spec_input.html
+++ b/pkg/analysis_server/tool/spec/spec_input.html
@@ -6,7 +6,7 @@
</head>
<body>
<h1>Analysis Server API Specification</h1>
- <h1 style="color:#999999">Version <version>1.18.0</version></h1>
+ <h1 style="color:#999999">Version <version>1.18.1</version></h1>
<p>
This document contains a specification of the API provided by the
analysis server. The API in this document is currently under
@@ -1801,6 +1801,46 @@
</field>
</result>
</request>
+ <request method="getStatementCompletion" experimental="true">
+ <p>
+ 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.
+ </p>
+ <params>
+ <field name="file">
+ <ref>FilePath</ref>
+ <p>
+ The file containing the statement to be completed.
+ </p>
+ </field>
+ <field name="offset">
+ <ref>int</ref>
+ <p>
+ The offset used to identify the statement to be completed.
+ </p>
+ </field>
+ </params>
+ <result>
+ <field name="change">
+ <ref>SourceChange</ref>
+ <p>
+ The change to be applied in order to complete the statement.
+ </p>
+ </field>
+ <field name="whitespaceOnly">
+ <ref>bool</ref>
+ <p>
+ Will be true if the change contains nothing but whitespace
+ characters, or is empty.
+ </p>
+ </field>
+ </result>
+ </request>
<request method="sortMembers">
<p>
Sort all of the directives, unit and class members
« no previous file with comments | « pkg/analysis_server/tool/spec/generated/java/AnalysisServer.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698