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

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

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
« 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..1598d7954320ada476ca63c002fa5659ebfbcfbb 100644
--- a/pkg/analysis_server/tool/spec/spec_input.html
+++ b/pkg/analysis_server/tool/spec/spec_input.html
@@ -1801,6 +1801,46 @@
</field>
</result>
</request>
+ <request method="getStatementCompletion">
+ <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>int</ref>
scheglov 2017/03/29 01:18:34 bool?
+ <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