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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/AnalysisOptionsImpl.java

Issue 842503003: Enable async support (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/context/AnalysisOptionsImplTest.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/AnalysisOptionsImpl.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/AnalysisOptionsImpl.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/AnalysisOptionsImpl.java
index 0721adae3f49cea2102b8fd782ef1d1cac940b27..8d484006377041ef787bf54804268a4de5b017a6 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/AnalysisOptionsImpl.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/AnalysisOptionsImpl.java
@@ -29,7 +29,8 @@ public class AnalysisOptionsImpl implements AnalysisOptions {
/**
* The default value for enabling async support.
*/
- public static boolean DEFAULT_ENABLE_ASYNC = false;
+ @Deprecated
+ public static boolean DEFAULT_ENABLE_ASYNC = true;
/**
* The default value for enabling deferred loading.
@@ -155,6 +156,7 @@ public class AnalysisOptionsImpl implements AnalysisOptions {
return dart2jsHint;
}
+ @Deprecated
@Override
public boolean getEnableAsync() {
return enableAsync;
@@ -242,8 +244,9 @@ public class AnalysisOptionsImpl implements AnalysisOptions {
*
* @param enableAsync {@code true} if async support should be enabled
*/
+ @Deprecated
public void setEnableAsync(boolean enableAsync) {
- this.enableAsync = enableAsync;
+ // Async support cannot be disabled
}
/**
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/context/AnalysisOptionsImplTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698