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 fa314ee432dcf6b814966911e869d87ed93e20ee..386053315d12f47db5115f65f0f69e80b5917418 100644 |
--- a/pkg/analyzer/lib/src/generated/engine.dart |
+++ b/pkg/analyzer/lib/src/generated/engine.dart |
@@ -1260,6 +1260,11 @@ abstract class AnalysisOptions { |
List<int> encodeCrossContextOptions(); |
/** |
+ * Reset the state of this set of analysis options to its original state. |
+ */ |
+ void resetToDefaults(); |
+ |
+ /** |
* Set the values of the cross-context options to match those in the given set |
* of [options]. |
*/ |
@@ -1583,6 +1588,38 @@ class AnalysisOptionsImpl implements AnalysisOptions { |
} |
@override |
+ void resetToDefaults() { |
+ dart2jsHint = false; |
+ disableCacheFlushing = false; |
+ enableAssertInitializer = false; |
+ enableAssertMessage = false; |
+ enableLazyAssignmentOperators = false; |
+ enableStrictCallChecks = false; |
+ enableSuperMixins = false; |
+ enableTiming = false; |
+ enableUriInPartOf = false; |
+ _errorProcessors = null; |
+ _excludePatterns = null; |
+ finerGrainedInvalidation = false; |
+ generateImplicitErrors = true; |
+ generateSdkErrors = false; |
+ hint = true; |
+ implicitCasts = true; |
+ implicitDynamic = true; |
+ incremental = false; |
+ incrementalApi = false; |
+ incrementalValidation = false; |
+ lint = false; |
+ _lintRules = null; |
+ nonnullableTypes = NONNULLABLE_TYPES; |
+ patchPlatform = 0; |
+ preserveComments = true; |
+ strongMode = false; |
+ strongModeHints = false; |
+ trackCacheDependencies = true; |
+ } |
+ |
+ @override |
void setCrossContextOptionsFrom(AnalysisOptions options) { |
enableAssertMessage = options.enableAssertMessage; |
enableLazyAssignmentOperators = options.enableLazyAssignmentOperators; |