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

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

Issue 2917943002: Postfix completion (Closed)
Patch Set: Update server protocol Created 3 years, 6 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/types/PostfixTemplateDescriptor.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 0415596a2aa7766a0e5504c5fc47ef54393e8246..8896ac724ba49c307154a48106c54de35573a274 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 template.
Brian Wilkerson 2017/06/26 15:26:14 "template" --> "templates"
messick 2017/06/26 16:52:34 Done.
+ </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.
« no previous file with comments | « pkg/analysis_server/tool/spec/generated/java/types/PostfixTemplateDescriptor.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698