| 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 0415596a2aa7766a0e5504c5fc47ef54393e8246..911ec01b28156739a7fce68bfc5296c27430ef20 100644
|
| --- a/pkg/analysis_server/tool/spec/spec_input.html
|
| +++ b/pkg/analysis_server/tool/spec/spec_input.html
|
| @@ -1772,6 +1772,40 @@
|
| </field>
|
| </result>
|
| </request>
|
| + <request method="getPostfixCompletion" experimental="true">
|
| + <p>
|
| + Get the changes required to convert the postfix template at the given
|
| + location into the template's expanded form.
|
| + </p>
|
| + <params>
|
| + <field name="file">
|
| + <ref>FilePath</ref>
|
| + <p>
|
| + The file containing the postfix template to be expanded.
|
| + </p>
|
| + </field>
|
| + <field name="key">
|
| + <ref>String</ref>
|
| + <p>
|
| + The unique name that identifies the template in use.
|
| + </p>
|
| + </field>
|
| + <field name="offset">
|
| + <ref>int</ref>
|
| + <p>
|
| + The offset used to identify the code to which the template will be applied.
|
| + </p>
|
| + </field>
|
| + </params>
|
| + <result>
|
| + <field name="change">
|
| + <ref>SourceChange</ref>
|
| + <p>
|
| + The change to be applied in order to complete the statement.
|
| + </p>
|
| + </field>
|
| + </result>
|
| + </request>
|
| <request method="getRefactoring">
|
| <p>
|
| Get the changes required to perform a refactoring.
|
| @@ -1939,6 +1973,55 @@
|
| </field>
|
| </result>
|
| </request>
|
| + <request method="isPostfixCompletionApplicable" experimental="true">
|
| + <p>
|
| + Determine if the request postfix completion template is applicable at
|
| + the given location in the given file.
|
| + </p>
|
| + <params>
|
| + <field name="file">
|
| + <ref>FilePath</ref>
|
| + <p>
|
| + The file containing the postfix template to be expanded.
|
| + </p>
|
| + </field>
|
| + <field name="key">
|
| + <ref>String</ref>
|
| + <p>
|
| + The unique name that identifies the template in use.
|
| + </p>
|
| + </field>
|
| + <field name="offset">
|
| + <ref>int</ref>
|
| + <p>
|
| + The offset used to identify the code to which the template will be applied.
|
| + </p>
|
| + </field>
|
| + </params>
|
| + <result>
|
| + <field name="value">
|
| + <ref>bool</ref>
|
| + <p>
|
| + True if the template can be expanded at the given location.
|
| + </p>
|
| + </field>
|
| + </result>
|
| + </request>
|
| + <request method="listPostfixCompletionTemplates" experimental="true">
|
| + <p>
|
| + Return a list of all postfix templates currently available.
|
| + </p>
|
| + <result>
|
| + <field name="templates">
|
| + <list>
|
| + <ref>PostfixTemplateDescriptor</ref>
|
| + </list>
|
| + <p>
|
| + The list of available templates.
|
| + </p>
|
| + </field>
|
| + </result>
|
| + </request>
|
| <request method="sortMembers">
|
| <p>
|
| Sort all of the directives, unit and class members
|
| @@ -2777,6 +2860,31 @@
|
| </field>
|
| </object>
|
| </type>
|
| + <type name="PostfixTemplateDescriptor">
|
| + <p>
|
| + The description of a postfix completion template.
|
| + </p>
|
| + <object>
|
| + <field name="name">
|
| + <ref>String</ref>
|
| + <p>
|
| + The template name, shown in the UI.
|
| + </p>
|
| + </field>
|
| + <field name="key">
|
| + <ref>String</ref>
|
| + <p>
|
| + The unique template key, not shown in the UI.
|
| + </p>
|
| + </field>
|
| + <field name="example">
|
| + <ref>String</ref>
|
| + <p>
|
| + A short example of the transformation performed when the template is applied.
|
| + </p>
|
| + </field>
|
| + </object>
|
| + </type>
|
| <type name="PubStatus">
|
| <p>
|
| An indication of the current state of pub execution.
|
|
|