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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/DartCore.java

Issue 756193002: Add --enable-incremental-resolution option. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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.tools.core/src/com/google/dart/tools/core/DartCore.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/DartCore.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/DartCore.java
index 797c9b3c5c95af1f93856580005e93066725967a..8f947e25dd7db975a6e6a69735390983b57e4149 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/DartCore.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/DartCore.java
@@ -52,6 +52,7 @@ import com.google.dart.tools.core.utilities.io.FileUtilities;
import com.google.dart.tools.core.utilities.performance.PerformanceManager;
import com.google.dart.tools.core.utilities.yaml.PubYamlUtils;
+import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFile;
@@ -468,6 +469,7 @@ public class DartCore extends Plugin implements DartSdkListener {
}
try {
+ String[] additionalArguments = StringUtilities.EMPTY_ARRAY;
// prepare debug stream
DebugPrintStream debugStream;
{
@@ -494,6 +496,13 @@ public class DartCore extends Plugin implements DartSdkListener {
};
}
}
+ // incremental resolution
+ if (DartCoreDebug.ANALYSIS_SERVER_INCREMENTAL_RESOLUTION) {
+ additionalArguments = ArrayUtils.add(
+ additionalArguments,
+ "--enable-incremental-resolution");
+ }
+ // HTTP port
int httpPort = 0;
if (DartCoreDebug.ANALYSIS_SERVER_HTTP_PORT != null
&& !DartCoreDebug.ANALYSIS_SERVER_HTTP_PORT.isEmpty()) {
@@ -510,7 +519,7 @@ public class DartCore extends Plugin implements DartSdkListener {
analysisServerPath,
packageRoot,
debugStream,
- StringUtilities.EMPTY_ARRAY,
+ additionalArguments,
DartCoreDebug.ANALYSIS_SERVER_DEBUG,
DartCoreDebug.ANALYSIS_SERVER_PROFILE,
httpPort,

Powered by Google App Engine
This is Rietveld 408576698