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

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

Issue 449213002: Rework "analysis.updateContent" analysis server request. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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
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 62124948854181df63a6b71de119e7380d4cf46f..4d3749fa688b3e425e124eb420cad008f7d6b992 100644
--- a/pkg/analysis_server/tool/spec/spec_input.html
+++ b/pkg/analysis_server/tool/spec/spec_input.html
@@ -482,11 +482,16 @@
<field name="files">
<map>
<key><ref>FilePath</ref></key>
- <value><ref>ContentChange</ref></value>
+ <value><ref>object</ref></value>
</map>
<p>
- A table mapping the files whose content has changed to
- a description of the content.
+ A table mapping the files whose content has changed to a
+ description of the content change. Each value should be
+ one of the following types: <a
+ href="#type_AddContentOverlay">AddContentOverlay</a>, <a
+ href="#type_ChangeContentOverlay">ChangeContentOverlay</a>,
+ or <a
+ href="#type_RemoveContentOverlay">RemoveContentOverlay</a>.
</p>
</field>
</params>
@@ -1399,6 +1404,27 @@
This section contains descriptions of the data types referenced
in the API’s of the various domains.
</p>
+ <type name="AddContentOverlay">
+ <p>
+ A directive to begin overlaying the contents of a file. The
+ supplied content will be used for analysis in place of the
+ file contents in the filesystem.
+ </p>
+ <p>
+ If this directive is used on a file that already has a file
+ content overlay, the old overlay is discarded and replaced
+ with the new one.
+ </p>
+ <object>
+ <field name="type" value="add"><ref>String</ref></field>
+ <field name="content">
+ <ref>String</ref>
+ <p>
+ The new content of the file.
+ </p>
+ </field>
+ </object>
+ </type>
<type name="AnalysisError">
<p>
An indication of an error, warning, or hint that was produced
@@ -1535,6 +1561,43 @@
</field>
</object>
</type>
+ <type name="ChangeContentOverlay">
+ <p>
+ A directive to modify an existing file content overlay. A
+ range of text is deleted from the old file content overlay
+ and replaced with new text.
+ </p>
+ <p>
+ It is an error to use this directive is used on a file that
+ does not yet have a file content overlay (or that has had
+ its overlay removed via <a
+ href="#type_RemoveContentOverlay">RemoveContentOverlay</a>).
+ </p>
+ <object>
+ <field name="type" value="change"><ref>String</ref></field>
+ <field name="offset">
+ <ref>int</ref>
+ <p>
+ The offset of the text to be remove from the file
+ content overlay.
+ </p>
+ </field>
+ <field name="oldLength">
Brian Wilkerson 2014/08/07 22:15:22 "oldLength" --> "length"
Paul Berry 2014/08/07 23:58:09 Done.
+ <ref>int</ref>
+ <p>
+ The length of the text to be removed from the file
+ content overlay, or 0 if no text should be removed.
+ </p>
+ </field>
+ <field name="replacement">
+ <ref>String</ref>
+ <p>
+ The new text which should be inserted in place of the
+ removed text.
+ </p>
+ </field>
+ </object>
+ </type>
<type name="CompletionId">
<ref>String</ref>
<p>
@@ -1717,41 +1780,6 @@
<value><code>TYPE_PARAMETER</code></value>
</enum>
</type>
- <type name="ContentChange">
- <p>
- A description of the change to the content of a file. The
- optional fields are omitted if there is no single range of
- characters that was modified. If any of the optional fields
- are provided then all of the optional fields must be provided.
- </p>
- <object>
- <field name="content">
- <ref>String</ref>
- <p>
- The new content of the file, or null if the content of the
- file should be read from disk.
- </p>
- </field>
- <field name="offset" optional="true">
- <ref>int</ref>
- <p>
- The offset of the region that was modified.
- </p>
- </field>
- <field name="oldLength" optional="true">
- <ref>int</ref>
- <p>
- The length of the region that was removed.
- </p>
- </field>
- <field name="newLength" optional="true">
- <ref>int</ref>
- <p>
- The length of the region that was added.
- </p>
- </field>
- </object>
- </type>
<type name="DebugContextId">
<ref>String</ref>
<p>
@@ -2497,6 +2525,20 @@
<value><code>FATAL</code></value>
</enum>
</type>
+ <type name="RemoveContentOverlay">
+ <p>
+ A directive to remove an existing file content overlay.
+ After processing this directive, the file contents will once
+ again be read from the file system.
+ </p>
+ <p>
+ If this directive is used on a file that doesn't currently
+ have a content overlay, it has no effect.
+ </p>
+ <object>
+ <field name="type" value="remove"><ref>String</ref></field>
+ </object>
+ </type>
<type name="SearchId">
<ref>String</ref>
<p>

Powered by Google App Engine
This is Rietveld 408576698