OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015, the Dart project authors. | 2 * Copyright (c) 2015, the Dart project authors. |
3 * | 3 * |
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except | 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except |
5 * in compliance with the License. You may obtain a copy of the License at | 5 * in compliance with the License. You may obtain a copy of the License at |
6 * | 6 * |
7 * http://www.eclipse.org/legal/epl-v10.html | 7 * http://www.eclipse.org/legal/epl-v10.html |
8 * | 8 * |
9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License | 9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License |
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express | 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 * analysis (e.g. because it is not associated with any analysis root specifie
d to | 112 * analysis (e.g. because it is not associated with any analysis root specifie
d to |
113 * analysis.setAnalysisRoots), an error of type GET_NAVIGATION_INVALID_FILE wi
ll be generated. | 113 * analysis.setAnalysisRoots), an error of type GET_NAVIGATION_INVALID_FILE wi
ll be generated. |
114 * | 114 * |
115 * @param file The file in which navigation information is being requested. | 115 * @param file The file in which navigation information is being requested. |
116 * @param offset The offset of the region for which navigation information is
being requested. | 116 * @param offset The offset of the region for which navigation information is
being requested. |
117 * @param length The length of the region for which navigation information is
being requested. | 117 * @param length The length of the region for which navigation information is
being requested. |
118 */ | 118 */ |
119 public void analysis_getNavigation(String file, int offset, int length, GetNav
igationConsumer consumer); | 119 public void analysis_getNavigation(String file, int offset, int length, GetNav
igationConsumer consumer); |
120 | 120 |
121 /** | 121 /** |
| 122 * {@code analysis.getReachableSources} |
| 123 * |
| 124 * Return the transitive closure of reachable sources for a given file. |
| 125 * |
| 126 * If a request is made for a file which does not exist, or which is not curre
ntly subject to |
| 127 * analysis (e.g. because it is not associated with any analysis root specifie
d to |
| 128 * analysis.setAnalysisRoots), an error of type GET_REACHABLE_SOURCES_INVALID_
FILE will be |
| 129 * generated. |
| 130 * |
| 131 * @param file The file for which reachable source information is being reques
ted. |
| 132 */ |
| 133 public void analysis_getReachableSources(String file, GetReachableSourcesConsu
mer consumer); |
| 134 |
| 135 /** |
122 * {@code analysis.reanalyze} | 136 * {@code analysis.reanalyze} |
123 * | 137 * |
124 * Force the re-analysis of everything contained in the specified analysis roo
ts. This will cause | 138 * Force the re-analysis of everything contained in the specified analysis roo
ts. This will cause |
125 * all previously computed analysis results to be discarded and recomputed, an
d will cause all | 139 * all previously computed analysis results to be discarded and recomputed, an
d will cause all |
126 * subscribed notifications to be re-sent. | 140 * subscribed notifications to be re-sent. |
127 * | 141 * |
128 * If no analysis roots are provided, then all current analysis roots will be
re-analyzed. If an | 142 * If no analysis roots are provided, then all current analysis roots will be
re-analyzed. If an |
129 * empty list of analysis roots is provided, then nothing will be re-analyzed.
If the list contains | 143 * empty list of analysis roots is provided, then nothing will be re-analyzed.
If the list contains |
130 * one or more paths that are not currently analysis roots, then an error of t
ype | 144 * one or more paths that are not currently analysis roots, then an error of t
ype |
131 * INVALID_ANALYSIS_ROOT will be generated. | 145 * INVALID_ANALYSIS_ROOT will be generated. |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 * the response to this request has been sent. | 571 * the response to this request has been sent. |
558 */ | 572 */ |
559 public void server_shutdown(); | 573 public void server_shutdown(); |
560 | 574 |
561 /** | 575 /** |
562 * Start the analysis server. | 576 * Start the analysis server. |
563 */ | 577 */ |
564 public void start() throws Exception; | 578 public void start() throws Exception; |
565 | 579 |
566 } | 580 } |
OLD | NEW |