| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library analyzer.src.context.context; | 5 library analyzer.src.context.context; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 | 9 |
| 10 import 'package:analyzer/src/cancelable_future.dart'; | 10 import 'package:analyzer/src/cancelable_future.dart'; |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 | 197 |
| 198 @override | 198 @override |
| 199 void set analysisOptions(AnalysisOptions options) { | 199 void set analysisOptions(AnalysisOptions options) { |
| 200 bool needsRecompute = this._options.analyzeFunctionBodiesPredicate != | 200 bool needsRecompute = this._options.analyzeFunctionBodiesPredicate != |
| 201 options.analyzeFunctionBodiesPredicate || | 201 options.analyzeFunctionBodiesPredicate || |
| 202 this._options.generateImplicitErrors != | 202 this._options.generateImplicitErrors != |
| 203 options.generateImplicitErrors || | 203 options.generateImplicitErrors || |
| 204 this._options.generateSdkErrors != options.generateSdkErrors || | 204 this._options.generateSdkErrors != options.generateSdkErrors || |
| 205 this._options.dart2jsHint != options.dart2jsHint || | 205 this._options.dart2jsHint != options.dart2jsHint || |
| 206 (this._options.hint && !options.hint) || | 206 (this._options.hint && !options.hint) || |
| 207 (this._options.lint && !options.lint) || |
| 207 this._options.preserveComments != options.preserveComments || | 208 this._options.preserveComments != options.preserveComments || |
| 208 this._options.enableNullAwareOperators != | 209 this._options.enableNullAwareOperators != |
| 209 options.enableNullAwareOperators || | 210 options.enableNullAwareOperators || |
| 210 this._options.enableStrictCallChecks != options.enableStrictCallChecks; | 211 this._options.enableStrictCallChecks != options.enableStrictCallChecks; |
| 211 int cacheSize = options.cacheSize; | 212 int cacheSize = options.cacheSize; |
| 212 if (this._options.cacheSize != cacheSize) { | 213 if (this._options.cacheSize != cacheSize) { |
| 213 this._options.cacheSize = cacheSize; | 214 this._options.cacheSize = cacheSize; |
| 214 } | 215 } |
| 215 this._options.analyzeFunctionBodiesPredicate = | 216 this._options.analyzeFunctionBodiesPredicate = |
| 216 options.analyzeFunctionBodiesPredicate; | 217 options.analyzeFunctionBodiesPredicate; |
| (...skipping 1854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2071 PendingFuture pendingFuture = | 2072 PendingFuture pendingFuture = |
| 2072 new PendingFuture<T>(_context, target, computeValue); | 2073 new PendingFuture<T>(_context, target, computeValue); |
| 2073 if (!pendingFuture.evaluate(entry)) { | 2074 if (!pendingFuture.evaluate(entry)) { |
| 2074 _context._pendingFutureTargets | 2075 _context._pendingFutureTargets |
| 2075 .putIfAbsent(target, () => <PendingFuture>[]) | 2076 .putIfAbsent(target, () => <PendingFuture>[]) |
| 2076 .add(pendingFuture); | 2077 .add(pendingFuture); |
| 2077 } | 2078 } |
| 2078 return pendingFuture.future; | 2079 return pendingFuture.future; |
| 2079 } | 2080 } |
| 2080 } | 2081 } |
| OLD | NEW |