Chromium Code Reviews| 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 9be1f2d74a84f381e3e4dd6fe0982854fd0ea449..adf0e349f749a441f8a010983bbfdb50bba217e8 100644 |
| --- a/pkg/analyzer/lib/src/generated/engine.dart |
| +++ b/pkg/analyzer/lib/src/generated/engine.dart |
| @@ -1170,6 +1170,9 @@ class AnalysisContextImpl implements InternalAnalysisContext { |
| (this._options.hint && !options.hint) || |
| this._options.preserveComments != options.preserveComments || |
| this._options.strongMode != options.strongMode || |
| + ((options is AnalysisOptionsImpl) |
| + ? this._options.strongModeHints != options.strongModeHints |
| + : false) || |
| this._options.enableStrictCallChecks != |
| options.enableStrictCallChecks || |
| this._options.enableSuperMixins != options.enableSuperMixins; |
| @@ -1206,6 +1209,9 @@ class AnalysisContextImpl implements InternalAnalysisContext { |
| this._options.lint = options.lint; |
| this._options.preserveComments = options.preserveComments; |
| this._options.strongMode = options.strongMode; |
| + if (options is AnalysisOptionsImpl) { |
| + this._options.strongModeHints = options.strongModeHints; |
| + } |
| _generateImplicitErrors = options.generateImplicitErrors; |
| _generateSdkErrors = options.generateSdkErrors; |
| if (needsRecompute) { |
| @@ -6462,6 +6468,14 @@ class AnalysisOptionsImpl implements AnalysisOptions { |
| bool strongMode = false; |
| /** |
| + * A flag indicating whether strong-mode inference hints should be |
| + * used. This flag is not exposed in the interface, and should be |
| + * replaced by something more general. |
| + * TODO(leafp): replace this with something more general |
|
Jennifer Messerly
2015/12/02 20:37:18
nit: I think this usually goes outside of the doc
Leaf
2015/12/02 21:07:38
Done.
|
| + */ |
| + bool strongModeHints = false; |
| + |
| + /** |
| * Initialize a newly created set of analysis options to have their default |
| * values. |
| */ |
| @@ -6488,6 +6502,9 @@ class AnalysisOptionsImpl implements AnalysisOptions { |
| lint = options.lint; |
| preserveComments = options.preserveComments; |
| strongMode = options.strongMode; |
| + if (options is AnalysisOptionsImpl) { |
| + strongModeHints = options.strongModeHints; |
| + } |
| } |
| /** |
| @@ -6510,6 +6527,9 @@ class AnalysisOptionsImpl implements AnalysisOptions { |
| lint = options.lint; |
| preserveComments = options.preserveComments; |
| strongMode = options.strongMode; |
| + if (options is AnalysisOptionsImpl) { |
| + strongModeHints = options.strongModeHints; |
| + } |
| } |
| bool get analyzeFunctionBodies { |