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

Side by Side Diff: pkg/analysis_server/doc/api.html

Issue 469673002: Add union types to the analysis server API spec. (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html><head> 1 <html><head>
2 <meta charset="UTF-8"> 2 <meta charset="UTF-8">
3 <title>Analysis Server API Specification</title> 3 <title>Analysis Server API Specification</title>
4 <style>h1 { 4 <style>h1 {
5 text-align: center; 5 text-align: center;
6 } 6 }
7 pre { 7 pre {
8 margin: 0px; 8 margin: 0px;
9 } 9 }
10 div.box { 10 div.box {
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 <h4>Parameters</h4><dl><dt class="field"><b><i>subscriptions ( Map&lt;<a h ref="#type_AnalysisService">AnalysisService</a>, List&lt;<a href="#type_FilePath ">FilePath</a>&gt;&gt; )</i></b></dt><dd> 558 <h4>Parameters</h4><dl><dt class="field"><b><i>subscriptions ( Map&lt;<a h ref="#type_AnalysisService">AnalysisService</a>, List&lt;<a href="#type_FilePath ">FilePath</a>&gt;&gt; )</i></b></dt><dd>
559 559
560 <p> 560 <p>
561 A table mapping services to a list of the files being 561 A table mapping services to a list of the files being
562 subscribed to the service. 562 subscribed to the service.
563 </p> 563 </p>
564 </dd></dl></dd><dt class="request">analysis.updateContent</dt><dd><div class="box"><pre>request: { 564 </dd></dl></dd><dt class="request">analysis.updateContent</dt><dd><div class="box"><pre>request: {
565 "id": String 565 "id": String
566 "method": "analysis.updateContent" 566 "method": "analysis.updateContent"
567 "params": { 567 "params": {
568 "<b>files</b>": Map&lt;<a href="#type_FilePath">FilePath</a>, object&gt; 568 "<b>files</b>": Map&lt;<a href="#type_FilePath">FilePath</a>, <a href="#type _AddContentOverlay">AddContentOverlay</a> | <a href="#type_ChangeContentOverlay" >ChangeContentOverlay</a> | <a href="#type_RemoveContentOverlay">RemoveContentOv erlay</a>&gt;
569 } 569 }
570 }</pre><br><pre>response: { 570 }</pre><br><pre>response: {
571 "id": String 571 "id": String
572 "error": <span style="color:#999999">optional</span> <a href="#type_Error">Err or</a> 572 "error": <span style="color:#999999">optional</span> <a href="#type_Error">Err or</a>
573 }</pre></div> 573 }</pre></div>
574 <p> 574 <p>
575 Update the content of one or more files. Files that were 575 Update the content of one or more files. Files that were
576 previously updated but not included in this update remain 576 previously updated but not included in this update remain
577 unchanged. This effectively represents an overlay of the 577 unchanged. This effectively represents an overlay of the
578 filesystem. The files whose content is overridden are 578 filesystem. The files whose content is overridden are
579 therefore seen by server as being files with the given 579 therefore seen by server as being files with the given
580 content, even if the files do not exist on the filesystem or 580 content, even if the files do not exist on the filesystem or
581 if the file path represents the path to a directory on the 581 if the file path represents the path to a directory on the
582 filesystem. 582 filesystem.
583 </p> 583 </p>
584 584
585 <h4>Parameters</h4><dl><dt class="field"><b><i>files ( Map&lt;<a href="#ty pe_FilePath">FilePath</a>, object&gt; )</i></b></dt><dd> 585 <h4>Parameters</h4><dl><dt class="field"><b><i>files ( Map&lt;<a href="#ty pe_FilePath">FilePath</a>, <a href="#type_AddContentOverlay">AddContentOverlay</ a> | <a href="#type_ChangeContentOverlay">ChangeContentOverlay</a> | <a href="#t ype_RemoveContentOverlay">RemoveContentOverlay</a>&gt; )</i></b></dt><dd>
586 586
587 <p> 587 <p>
588 A table mapping the files whose content has changed to a 588 A table mapping the files whose content has changed to a
589 description of the content change. Each value should be 589 description of the content change.
590 one of the following types: <a href="#type_AddContentOverlay">AddC ontentOverlay</a>, <a href="#type_ChangeContentOverlay">ChangeContentOverlay</a> ,
591 or <a href="#type_RemoveContentOverlay">RemoveContentOverlay</a>.
592 </p> 590 </p>
593 </dd></dl></dd><dt class="request">analysis.updateOptions</dt><dd><div class="box"><pre>request: { 591 </dd></dl></dd><dt class="request">analysis.updateOptions</dt><dd><div class="box"><pre>request: {
594 "id": String 592 "id": String
595 "method": "analysis.updateOptions" 593 "method": "analysis.updateOptions"
596 "params": { 594 "params": {
597 "<b>options</b>": <a href="#type_AnalysisOptions">AnalysisOptions</a> 595 "<b>options</b>": <a href="#type_AnalysisOptions">AnalysisOptions</a>
598 } 596 }
599 }</pre><br><pre>response: { 597 }</pre><br><pre>response: {
600 "id": String 598 "id": String
601 "error": <span style="color:#999999">optional</span> <a href="#type_Error">Err or</a> 599 "error": <span style="color:#999999">optional</span> <a href="#type_Error">Err or</a>
(...skipping 2370 matching lines...) Expand 10 before | Expand all | Expand 10 after
2972 <p> 2970 <p>
2973 This section contains a list of all of the errors that are 2971 This section contains a list of all of the errors that are
2974 produced by the server and the data that is returned with each. 2972 produced by the server and the data that is returned with each.
2975 </p> 2973 </p>
2976 <p> 2974 <p>
2977 TBD 2975 TBD
2978 </p> 2976 </p>
2979 2977
2980 2978
2981 </body></html> 2979 </body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698