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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 * but they will remain in the set of requested roots. | 167 * but they will remain in the set of requested roots. |
168 * | 168 * |
169 * If an included path represents a file, then server will look in the directo
ry containing the | 169 * If an included path represents a file, then server will look in the directo
ry containing the |
170 * file for a pubspec.yaml file. If none is found, then the parents of the dir
ectory will be | 170 * file for a pubspec.yaml file. If none is found, then the parents of the dir
ectory will be |
171 * searched until such a file is found or the root of the file system is reach
ed. If such a file is | 171 * searched until such a file is found or the root of the file system is reach
ed. If such a file is |
172 * found, it will be used to resolve package: URI’s within the file. | 172 * found, it will be used to resolve package: URI’s within the file. |
173 * | 173 * |
174 * @param included A list of the files and directories that should be analyzed
. | 174 * @param included A list of the files and directories that should be analyzed
. |
175 * @param excluded A list of the files and directories within the included dir
ectories that should | 175 * @param excluded A list of the files and directories within the included dir
ectories that should |
176 * not be analyzed. | 176 * not be analyzed. |
177 * @param packageRoots A mapping from source directories to target directories
that should override | 177 * @param packageRoots A mapping from source directories to package roots that
should override the |
178 * the normal package: URI resolution mechanism. The analyzer will beh
ave as though each | 178 * normal package: URI resolution mechanism. If a package root is a di
rectory, then the |
179 * source directory in the map contains a special pubspec.yaml file wh
ich resolves any | 179 * analyzer will behave as though the associated source directory in t
he map contains a |
180 * package: URI to the corresponding path within the target directory.
The effect is the | 180 * special pubspec.yaml file which resolves any package: URI to the co
rresponding path |
181 * same as specifying the target directory as a "--package_root" param
eter to the Dart VM | 181 * within that package root directory. The effect is the same as speci
fying the package |
182 * when executing any Dart file inside the source directory. Files in
any directories that | 182 * root directory as a "--package_root" parameter to the Dart VM when
executing any Dart |
183 * are not overridden by this mapping have their package: URI's resolv
ed using the normal | 183 * file inside the source directory. If a package root is a file, then
the analyzer will |
| 184 * behave as though that file is a ".packages" file in the source dire
ctory. The effect is |
| 185 * the same as specifying the file as a "--packages" parameter to the
Dart VM when |
| 186 * executing any Dart file inside the source directory. Files in any d
irectories that are |
| 187 * not overridden by this mapping have their package: URI's resolved u
sing the normal |
184 * pubspec.yaml mechanism. If this field is absent, or the empty map i
s specified, that | 188 * pubspec.yaml mechanism. If this field is absent, or the empty map i
s specified, that |
185 * indicates that the normal pubspec.yaml mechanism should always be u
sed. | 189 * indicates that the normal pubspec.yaml mechanism should always be u
sed. |
186 */ | 190 */ |
187 public void analysis_setAnalysisRoots(List<String> included, List<String> excl
uded, Map<String, String> packageRoots); | 191 public void analysis_setAnalysisRoots(List<String> included, List<String> excl
uded, Map<String, String> packageRoots); |
188 | 192 |
189 /** | 193 /** |
190 * {@code analysis.setGeneralSubscriptions} | 194 * {@code analysis.setGeneralSubscriptions} |
191 * | 195 * |
192 * Subscribe for general services (that is, services that are not specific to
individual files). | 196 * Subscribe for general services (that is, services that are not specific to
individual files). |
193 * All previous subscriptions are replaced by the given set of services. | 197 * All previous subscriptions are replaced by the given set of services. |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 * the response to this request has been sent. | 575 * the response to this request has been sent. |
572 */ | 576 */ |
573 public void server_shutdown(); | 577 public void server_shutdown(); |
574 | 578 |
575 /** | 579 /** |
576 * Start the analysis server. | 580 * Start the analysis server. |
577 */ | 581 */ |
578 public void start() throws Exception; | 582 public void start() throws Exception; |
579 | 583 |
580 } | 584 } |
OLD | NEW |