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

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

Issue 874373003: Library dependencies server API updates (to pass package maps). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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>body { 4 <style>body {
5 font-family: sans-serif, serif; 5 font-family: sans-serif, serif;
6 padding-left: 5%; 6 padding-left: 5%;
7 padding-right: 5%; 7 padding-right: 5%;
8 } 8 }
9 h1 { 9 h1 {
10 text-align: center; 10 text-align: center;
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 part that is included in multiple libraries). 468 part that is included in multiple libraries).
469 </p> 469 </p>
470 </dd></dl></dd><dt class="request">analysis.getLibraryDependencies</dt ><dd><div class="box"><pre>request: { 470 </dd></dl></dd><dt class="request">analysis.getLibraryDependencies</dt ><dd><div class="box"><pre>request: {
471 "id": String 471 "id": String
472 "method": "analysis.getLibraryDependencies" 472 "method": "analysis.getLibraryDependencies"
473 }</pre><br><pre>response: { 473 }</pre><br><pre>response: {
474 "id": String 474 "id": String
475 "error": <span style="color:#999999">optional</span> <a href="#type_RequestErr or">RequestError</a> 475 "error": <span style="color:#999999">optional</span> <a href="#type_RequestErr or">RequestError</a>
476 "result": { 476 "result": {
477 "<b>libraries</b>": List&lt;<a href="#type_FilePath">FilePath</a>&gt; 477 "<b>libraries</b>": List&lt;<a href="#type_FilePath">FilePath</a>&gt;
478 "<b>packageMap</b>": Map&lt;String, Map&lt;String, List&lt;<a href="#type_Fi lePath">FilePath</a>&gt;&gt;&gt;
478 } 479 }
479 }</pre></div> 480 }</pre></div>
480 <p> 481 <p>
481 Return a list of all of the libraries referenced by any files in 482 Return library dependency information for use in client-side indexing
482 existing analysis roots. 483 and package URI resolution.
483 </p> 484 </p>
485
486 <h4>Returns</h4><dl><dt class="field"><b><i>libraries ( List&lt;<a href="# type_FilePath">FilePath</a>&gt; )</i></b></dt><dd>
484 487
485 <h4>Returns</h4><dl><dt class="field"><b><i>libraries ( List&lt;<a href="# type_FilePath">FilePath</a>&gt; )</i></b></dt><dd> 488 <p>
486 489 A list of the paths of library elements referenced by
487 <p> 490 files in existing analysis roots.
488 A list of the paths of library elements referenced by 491 </p>
489 files in existing analysis roots. 492 </dd><dt class="field"><b><i>packageMap ( Map&lt;String, Map&lt;Stri ng, List&lt;<a href="#type_FilePath">FilePath</a>&gt;&gt;&gt; )</i></b></dt><dd>
490 </p> 493
491 </dd></dl></dd><dt class="request">analysis.getNavigation</dt><d d><div class="box"><pre>request: { 494 <p>
495 A mapping from context source roots to package maps which map
496 package names to source directories for use in client-side
497 package URI resolution.
498 </p>
499 </dd></dl></dd><dt class="request">analysis.getNavigation</dt><dd><d iv class="box"><pre>request: {
492 "id": String 500 "id": String
493 "method": "analysis.getNavigation" 501 "method": "analysis.getNavigation"
494 "params": { 502 "params": {
495 "<b>file</b>": <a href="#type_FilePath">FilePath</a> 503 "<b>file</b>": <a href="#type_FilePath">FilePath</a>
496 "<b>offset</b>": int 504 "<b>offset</b>": int
497 "<b>length</b>": int 505 "<b>length</b>": int
498 } 506 }
499 }</pre><br><pre>response: { 507 }</pre><br><pre>response: {
500 "id": String 508 "id": String
501 "error": <span style="color:#999999">optional</span> <a href="#type_RequestErr or">RequestError</a> 509 "error": <span style="color:#999999">optional</span> <a href="#type_RequestErr or">RequestError</a>
(...skipping 3157 matching lines...) Expand 10 before | Expand all | Expand 10 after
3659 <p> 3667 <p>
3660 This section contains a list of all of the errors that are 3668 This section contains a list of all of the errors that are
3661 produced by the server and the data that is returned with each. 3669 produced by the server and the data that is returned with each.
3662 </p> 3670 </p>
3663 <p> 3671 <p>
3664 TBD 3672 TBD
3665 </p> 3673 </p>
3666 3674
3667 3675
3668 </body></html> 3676 </body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698