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

Unified Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 1570183002: add parser parseAsync flag (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
Index: pkg/analyzer/lib/src/generated/engine.dart
diff --git a/pkg/analyzer/lib/src/generated/engine.dart b/pkg/analyzer/lib/src/generated/engine.dart
index 0e762ee85f44cc22006e4ea33d1ca65045ef1462..4bc4725ed087c5a659714d7583a5cd201adc7d35 100644
--- a/pkg/analyzer/lib/src/generated/engine.dart
+++ b/pkg/analyzer/lib/src/generated/engine.dart
@@ -1047,6 +1047,11 @@ abstract class AnalysisOptions {
bool get enableAssertMessage;
/**
+ * Return `true` to if analysis is to include async support.
Brian Wilkerson 2016/01/08 18:43:47 "if analysis is to include" --> "enable"
danrubel 2016/01/08 20:45:51 Done.
+ */
+ bool get enableAsync;
+
+ /**
* Return `true` to enable interface libraries (DEP 40).
*/
bool get enableConditionalDirectives;
@@ -1155,6 +1160,11 @@ class AnalysisOptionsImpl implements AnalysisOptions {
bool enableAssertMessage = false;
/**
+ * A flag indicating whether analysis is to enable async support.
+ */
+ bool enableAsync = true;
+
+ /**
* A flag indicating whether interface libraries are to be supported (DEP 40).
*/
bool enableConditionalDirectives = false;
@@ -1249,6 +1259,7 @@ class AnalysisOptionsImpl implements AnalysisOptions {
cacheSize = options.cacheSize;
dart2jsHint = options.dart2jsHint;
enableAssertMessage = options.enableAssertMessage;
+ enableAsync = options.enableAsync;
enableStrictCallChecks = options.enableStrictCallChecks;
enableGenericMethods = options.enableGenericMethods;
enableSuperMixins = options.enableSuperMixins;

Powered by Google App Engine
This is Rietveld 408576698