OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014, the Dart project authors. | 2 * Copyright (c) 2014, 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 * but they will remain in the set of requested roots. | 96 * but they will remain in the set of requested roots. |
97 * | 97 * |
98 * If an included path represents a file, then server will look in the directo
ry containing the | 98 * If an included path represents a file, then server will look in the directo
ry containing the |
99 * file for a pubspec.yaml file. If none is found, then the parents of the dir
ectory will be | 99 * file for a pubspec.yaml file. If none is found, then the parents of the dir
ectory will be |
100 * searched until such a file is found or the root of the file system is reach
ed. If such a file is | 100 * searched until such a file is found or the root of the file system is reach
ed. If such a file is |
101 * found, it will be used to resolve package: URI’s within the file. | 101 * found, it will be used to resolve package: URI’s within the file. |
102 * | 102 * |
103 * @param included A list of the files and directories that should be analyzed
. | 103 * @param included A list of the files and directories that should be analyzed
. |
104 * @param excluded A list of the files and directories within the included dir
ectories that should | 104 * @param excluded A list of the files and directories within the included dir
ectories that should |
105 * not be analyzed. | 105 * not be analyzed. |
| 106 * @param packageRoots A mapping from source directories to target directories
that should override |
| 107 * the normal package: URI resolution mechanism. The analyzer will beh
ave as though each |
| 108 * source directory in the map contains a special pubspec.yaml file wh
ich resolves any |
| 109 * package: URI to the corresponding path within the target directory.
The effect is the |
| 110 * same as specifying the target directory as a "--package_root" param
eter to the Dart VM |
| 111 * when executing any Dart file inside the source directory. If this f
ield is absent, or |
| 112 * the empty map is specified, then all package: URI's are resolved th
e normal pubspec.yaml |
| 113 * mechanism. |
106 */ | 114 */ |
107 public void analysis_setAnalysisRoots(List<String> included, List<String> excl
uded); | 115 public void analysis_setAnalysisRoots(List<String> included, List<String> excl
uded, Map<String, String> packageRoots); |
108 | 116 |
109 /** | 117 /** |
110 * {@code analysis.setPriorityFiles} | 118 * {@code analysis.setPriorityFiles} |
111 * | 119 * |
112 * Set the priority files to the files in the given list. A priority file is a
file that is given | 120 * Set the priority files to the files in the given list. A priority file is a
file that is given |
113 * priority when scheduling which analysis work to do first. The list typicall
y contains those | 121 * priority when scheduling which analysis work to do first. The list typicall
y contains those |
114 * files that are visible to the user and those for which analysis results wil
l have the biggest | 122 * files that are visible to the user and those for which analysis results wil
l have the biggest |
115 * impact on the user experience. The order of the files within the list is si
gnificant: the first | 123 * impact on the user experience. The order of the files within the list is si
gnificant: the first |
116 * file will be given higher priority than the second, the second higher prior
ity than the third, | 124 * file will be given higher priority than the second, the second higher prior
ity than the third, |
117 * and so on. | 125 * and so on. |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 * the response to this request has been sent. | 418 * the response to this request has been sent. |
411 */ | 419 */ |
412 public void server_shutdown(); | 420 public void server_shutdown(); |
413 | 421 |
414 /** | 422 /** |
415 * Start the analysis server. | 423 * Start the analysis server. |
416 */ | 424 */ |
417 public void start() throws Exception; | 425 public void start() throws Exception; |
418 | 426 |
419 } | 427 } |
OLD | NEW |