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

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

Issue 896513002: Specify mapUri for directories (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address more cases 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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 486
487 <h4>Returns</h4><dl><dt class="field"><b><i>libraries ( List&lt;<a href="# type_FilePath">FilePath</a>&gt; )</i></b></dt><dd> 487 <h4>Returns</h4><dl><dt class="field"><b><i>libraries ( List&lt;<a href="# type_FilePath">FilePath</a>&gt; )</i></b></dt><dd>
488 488
489 <p> 489 <p>
490 A list of the paths of library elements referenced by 490 A list of the paths of library elements referenced by
491 files in existing analysis roots. 491 files in existing analysis roots.
492 </p> 492 </p>
493 </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> 493 </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>
494 494
495 <p> 495 <p>
496 A mapping from context source roots to package maps which map 496 A mapping from context source roots to package maps which map
497 package names to source directories for use in client-side 497 package names to source directories for use in client-side
498 package URI resolution. 498 package URI resolution.
499 </p> 499 </p>
500 </dd></dl></dd><dt class="request">analysis.getNavigation</dt><dd><d iv class="box"><pre>request: { 500 </dd></dl></dd><dt class="request">analysis.getNavigation</dt><dd><d iv class="box"><pre>request: {
501 "id": String 501 "id": String
502 "method": "analysis.getNavigation" 502 "method": "analysis.getNavigation"
503 "params": { 503 "params": {
504 "<b>file</b>": <a href="#type_FilePath">FilePath</a> 504 "<b>file</b>": <a href="#type_FilePath">FilePath</a>
505 "<b>offset</b>": int 505 "<b>offset</b>": int
506 "<b>length</b>": int 506 "<b>length</b>": int
507 } 507 }
(...skipping 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after
1913 } 1913 }
1914 }</pre></div> 1914 }</pre></div>
1915 <p> 1915 <p>
1916 Map a URI from the execution context to the file that it corresponds 1916 Map a URI from the execution context to the file that it corresponds
1917 to, or map a file to the URI that it corresponds to in the execution 1917 to, or map a file to the URI that it corresponds to in the execution
1918 context. 1918 context.
1919 </p> 1919 </p>
1920 <p> 1920 <p>
1921 Exactly one of the file and uri fields must be provided. 1921 Exactly one of the file and uri fields must be provided.
1922 </p> 1922 </p>
1923 <p>
1924 If the file field is provided and the value is not the path of a file
1925 (either the file does not exist or the path references something other
1926 than a file), then an error of type <tt>MAP_URI_INVALID_FILE</tt> will
1927 be generated.
1928 </p>
1929 <p>
1930 If the uri field is provided and the value is not a valid URI or if
1931 the URI references something that is not a file (either a file that
1932 does not exist or something other than a file), then an error of type
1933 <tt>MAP_URI_INVALID_URI</tt> will be generated.
1934 </p>
1935 <p>
1936 If the contextRoot used to create the execution context is not a file
1937 (either the file does not exist or the path references something other
1938 than a file), then an error of type <tt>INVALID_EXECUTION_CONTEXT</tt>
1939 will be generated.
1940 </p>
1923 1941
1924 1942
1925 <h4>Parameters</h4><dl><dt class="field"><b><i>id ( <a href="#type_Executi onContextId">ExecutionContextId</a> )</i></b></dt><dd> 1943 <h4>Parameters</h4><dl><dt class="field"><b><i>id ( <a href="#type_Executi onContextId">ExecutionContextId</a> )</i></b></dt><dd>
1926 1944
1927 <p> 1945 <p>
1928 The identifier of the execution context in which the URI is to be 1946 The identifier of the execution context in which the URI is to be
1929 mapped. 1947 mapped.
1930 </p> 1948 </p>
1931 </dd><dt class="field"><b><i>file ( <span style="color:#999999">option al</span> <a href="#type_FilePath">FilePath</a> )</i></b></dt><dd> 1949 </dd><dt class="field"><b><i>file ( <span style="color:#999999">option al</span> <a href="#type_FilePath">FilePath</a> )</i></b></dt><dd>
1932 1950
(...skipping 1746 matching lines...) Expand 10 before | Expand all | Expand 10 after
3679 <p> 3697 <p>
3680 This section contains a list of all of the errors that are 3698 This section contains a list of all of the errors that are
3681 produced by the server and the data that is returned with each. 3699 produced by the server and the data that is returned with each.
3682 </p> 3700 </p>
3683 <p> 3701 <p>
3684 TBD 3702 TBD
3685 </p> 3703 </p>
3686 3704
3687 3705
3688 </body></html> 3706 </body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698