Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisServer.java

Issue 672003002: Add package root setting to analysis server API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisServer.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisServer.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisServer.java
index 1c75875128d3d9ccd295f742a0aea6c6d41d8fa2..3b1283ff8a3f3e83d67fe5f80167917dfc0635e1 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisServer.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisServer.java
@@ -103,8 +103,16 @@ 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 A mapping from source directories to target directories that should override
+ * the normal package: URI resolution mechanism. The analyzer will behave as though each
+ * source directory in the map contains a special pubspec.yaml file which resolves any
+ * package: URI to the corresponding path within the target directory. The effect is the
+ * same as specifying the target directory as a "--package_root" parameter to the Dart VM
+ * when executing any Dart file inside the source directory. If this field is absent, or
+ * the empty map is specified, then all package: URI's are resolved the normal pubspec.yaml
+ * mechanism.
*/
- public void analysis_setAnalysisRoots(List<String> included, List<String> excluded);
+ public void analysis_setAnalysisRoots(List<String> included, List<String> excluded, Map<String, String> packageRoots);
/**
* {@code analysis.setPriorityFiles}

Powered by Google App Engine
This is Rietveld 408576698