Revert "Remove unused option in server API"

Review URL: https://codereview.chromium.org/2382033003 .
This commit is contained in:
Brian Wilkerson
2016-09-30 10:14:12 -07:00
parent 2972bd0d6b
commit 685e4ff9e1
22 changed files with 866 additions and 43 deletions
@@ -174,20 +174,19 @@ public interface AnalysisServer {
* @param included A list of the files and directories that should be analyzed.
* @param excluded A list of the files and directories within the included directories that should
* not be analyzed.
* @param packageRoots Deprecated: This field is now ignored by server. A mapping from source
* directories to package roots that should override the normal package: URI resolution
* mechanism. If a package root is a directory, then the analyzer will behave as though the
* associated source directory in the map contains a special pubspec.yaml file which
* resolves any package: URI to the corresponding path within that package root directory.
* The effect is the same as specifying the package root directory as a "--package_root"
* parameter to the Dart VM when executing any Dart file inside the source directory. If a
* package root is a file, then the analyzer will behave as though that file is a
* ".packages" file in the source directory. The effect is the same as specifying the file
* as a "--packages" parameter to the Dart VM when executing any Dart file inside the
* source directory. Files in any directories that are not overridden by this mapping have
* their package: URI's resolved using the normal pubspec.yaml mechanism. If this field is
* absent, or the empty map is specified, that indicates that the normal pubspec.yaml
* mechanism should always be used.
* @param packageRoots A mapping from source directories to package roots that should override the
* normal package: URI resolution mechanism. If a package root is a directory, then the
* analyzer will behave as though the associated source directory in the map contains a
* special pubspec.yaml file which resolves any package: URI to the corresponding path
* within that package root directory. The effect is the same as specifying the package
* root directory as a "--package_root" parameter to the Dart VM when executing any Dart
* file inside the source directory. If a package root is a file, then the analyzer will
* behave as though that file is a ".packages" file in the source directory. The effect is
* the same as specifying the file as a "--packages" parameter to the Dart VM when
* executing any Dart file inside the source directory. Files in any directories that are
* not overridden by this mapping have their package: URI's resolved using the normal
* pubspec.yaml mechanism. If this field is absent, or the empty map is specified, that
* indicates that the normal pubspec.yaml mechanism should always be used.
*/
public void analysis_setAnalysisRoots(List<String> included, List<String> excluded, Map<String, String> packageRoots);