| 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
|
|
|