| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 engine; | 5 library engine; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 import 'dart:math' as math; | 9 import 'dart:math' as math; |
| 10 | 10 |
| (...skipping 5918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5929 /** | 5929 /** |
| 5930 * The partition manager being used to manage the shared partitions. | 5930 * The partition manager being used to manage the shared partitions. |
| 5931 */ | 5931 */ |
| 5932 final newContext.PartitionManager partitionManager_new = | 5932 final newContext.PartitionManager partitionManager_new = |
| 5933 new newContext.PartitionManager(); | 5933 new newContext.PartitionManager(); |
| 5934 | 5934 |
| 5935 /** | 5935 /** |
| 5936 * A flag indicating whether the (new) task model should be used to perform | 5936 * A flag indicating whether the (new) task model should be used to perform |
| 5937 * analysis. | 5937 * analysis. |
| 5938 */ | 5938 */ |
| 5939 bool useTaskModel = false; | 5939 bool useTaskModel = true; |
| 5940 | 5940 |
| 5941 /** | 5941 /** |
| 5942 * A flag indicating whether the task model should attempt to limit | 5942 * A flag indicating whether the task model should attempt to limit |
| 5943 * invalidation after a change. | 5943 * invalidation after a change. |
| 5944 */ | 5944 */ |
| 5945 bool limitInvalidationInTaskModel = false; | 5945 bool limitInvalidationInTaskModel = false; |
| 5946 | 5946 |
| 5947 /** | 5947 /** |
| 5948 * The plugins that are defined outside the `analyzer` package. | 5948 * The plugins that are defined outside the `analyzer` package. |
| 5949 */ | 5949 */ |
| (...skipping 6161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12111 PendingFuture pendingFuture = | 12111 PendingFuture pendingFuture = |
| 12112 new PendingFuture<T>(_context, source, computeValue); | 12112 new PendingFuture<T>(_context, source, computeValue); |
| 12113 if (!pendingFuture.evaluate(sourceEntry)) { | 12113 if (!pendingFuture.evaluate(sourceEntry)) { |
| 12114 _context._pendingFutureSources | 12114 _context._pendingFutureSources |
| 12115 .putIfAbsent(source, () => <PendingFuture>[]) | 12115 .putIfAbsent(source, () => <PendingFuture>[]) |
| 12116 .add(pendingFuture); | 12116 .add(pendingFuture); |
| 12117 } | 12117 } |
| 12118 return pendingFuture.future; | 12118 return pendingFuture.future; |
| 12119 } | 12119 } |
| 12120 } | 12120 } |
| OLD | NEW |