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 Deprecated: This field is now ignored by server. A mapp
ing from source | 177 * @param packageRoots A mapping from source directories to package roots that
should override the |
178 * directories to package roots that should override the normal packag
e: URI resolution | 178 * normal package: URI resolution mechanism. If a package root is a di
rectory, then the |
179 * mechanism. If a package root is a directory, then the analyzer will
behave as though the | 179 * analyzer will behave as though the associated source directory in t
he map contains a |
180 * associated source directory in the map contains a special pubspec.y
aml file which | 180 * special pubspec.yaml file which resolves any package: URI to the co
rresponding path |
181 * resolves any package: URI to the corresponding path within that pac
kage root directory. | 181 * within that package root directory. The effect is the same as speci
fying the package |
182 * The effect is the same as specifying the package root directory as
a "--package_root" | 182 * root directory as a "--package_root" parameter to the Dart VM when
executing any Dart |
183 * parameter to the Dart VM when executing any Dart file inside the so
urce directory. If a | 183 * file inside the source directory. If a package root is a file, then
the analyzer will |
184 * package root is a file, then the analyzer will behave as though tha
t file is a | 184 * behave as though that file is a ".packages" file in the source dire
ctory. The effect is |
185 * ".packages" file in the source directory. The effect is the same as
specifying the file | 185 * the same as specifying the file as a "--packages" parameter to the
Dart VM when |
186 * as a "--packages" parameter to the Dart VM when executing any Dart
file inside the | 186 * executing any Dart file inside the source directory. Files in any d
irectories that are |
187 * source directory. Files in any directories that are not overridden
by this mapping have | 187 * not overridden by this mapping have their package: URI's resolved u
sing the normal |
188 * their package: URI's resolved using the normal pubspec.yaml mechani
sm. If this field is | 188 * pubspec.yaml mechanism. If this field is absent, or the empty map i
s specified, that |
189 * absent, or the empty map is specified, that indicates that the norm
al pubspec.yaml | 189 * indicates that the normal pubspec.yaml mechanism should always be u
sed. |
190 * mechanism should always be used. | |
191 */ | 190 */ |
192 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); |
193 | 192 |
194 /** | 193 /** |
195 * {@code analysis.setGeneralSubscriptions} | 194 * {@code analysis.setGeneralSubscriptions} |
196 * | 195 * |
197 * 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). |
198 * All previous subscriptions are replaced by the given set of services. | 197 * All previous subscriptions are replaced by the given set of services. |
199 * | 198 * |
200 * It is an error if any of the elements in the list are not valid services. I
f there is an error, | 199 * It is an error if any of the elements in the list are not valid services. I
f there is an error, |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 * the response to this request has been sent. | 575 * the response to this request has been sent. |
577 */ | 576 */ |
578 public void server_shutdown(); | 577 public void server_shutdown(); |
579 | 578 |
580 /** | 579 /** |
581 * Start the analysis server. | 580 * Start the analysis server. |
582 */ | 581 */ |
583 public void start() throws Exception; | 582 public void start() throws Exception; |
584 | 583 |
585 } | 584 } |
OLD | NEW |