| 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 6242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6253 */ | 6253 */ |
| 6254 bool get dart2jsHint; | 6254 bool get dart2jsHint; |
| 6255 | 6255 |
| 6256 /** | 6256 /** |
| 6257 * Return `true` if analysis is to include the new async support. | 6257 * Return `true` if analysis is to include the new async support. |
| 6258 */ | 6258 */ |
| 6259 @deprecated // Always true | 6259 @deprecated // Always true |
| 6260 bool get enableAsync; | 6260 bool get enableAsync; |
| 6261 | 6261 |
| 6262 /** | 6262 /** |
| 6263 * Return `true` to enable interface libraries (DEP 40). |
| 6264 */ |
| 6265 bool get enableConditionalDirectives; |
| 6266 |
| 6267 /** |
| 6263 * Return `true` if analysis is to include the new deferred loading support. | 6268 * Return `true` if analysis is to include the new deferred loading support. |
| 6264 */ | 6269 */ |
| 6265 @deprecated // Always true | 6270 @deprecated // Always true |
| 6266 bool get enableDeferredLoading; | 6271 bool get enableDeferredLoading; |
| 6267 | 6272 |
| 6268 /** | 6273 /** |
| 6269 * Return `true` if analysis is to include the new enum support. | 6274 * Return `true` if analysis is to include the new enum support. |
| 6270 */ | 6275 */ |
| 6271 @deprecated // Always true | 6276 @deprecated // Always true |
| 6272 bool get enableEnum; | 6277 bool get enableEnum; |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6380 */ | 6385 */ |
| 6381 int cacheSize = DEFAULT_CACHE_SIZE; | 6386 int cacheSize = DEFAULT_CACHE_SIZE; |
| 6382 | 6387 |
| 6383 /** | 6388 /** |
| 6384 * A flag indicating whether analysis is to generate dart2js related hint | 6389 * A flag indicating whether analysis is to generate dart2js related hint |
| 6385 * results. | 6390 * results. |
| 6386 */ | 6391 */ |
| 6387 bool dart2jsHint = false; | 6392 bool dart2jsHint = false; |
| 6388 | 6393 |
| 6389 /** | 6394 /** |
| 6395 * A flag indicating whether interface libraries are to be supported (DEP 40). |
| 6396 */ |
| 6397 bool enableConditionalDirectives = false; |
| 6398 |
| 6399 /** |
| 6390 * A flag indicating whether generic methods are to be supported (DEP 22). | 6400 * A flag indicating whether generic methods are to be supported (DEP 22). |
| 6391 */ | 6401 */ |
| 6392 bool enableGenericMethods = false; | 6402 bool enableGenericMethods = false; |
| 6393 | 6403 |
| 6394 /** | 6404 /** |
| 6395 * A flag indicating whether analysis is to strictly follow the specification | 6405 * A flag indicating whether analysis is to strictly follow the specification |
| 6396 * when generating warnings on "call" methods (fixes dartbug.com/21938). | 6406 * when generating warnings on "call" methods (fixes dartbug.com/21938). |
| 6397 */ | 6407 */ |
| 6398 bool enableStrictCallChecks = false; | 6408 bool enableStrictCallChecks = false; |
| 6399 | 6409 |
| (...skipping 5711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12111 PendingFuture pendingFuture = | 12121 PendingFuture pendingFuture = |
| 12112 new PendingFuture<T>(_context, source, computeValue); | 12122 new PendingFuture<T>(_context, source, computeValue); |
| 12113 if (!pendingFuture.evaluate(sourceEntry)) { | 12123 if (!pendingFuture.evaluate(sourceEntry)) { |
| 12114 _context._pendingFutureSources | 12124 _context._pendingFutureSources |
| 12115 .putIfAbsent(source, () => <PendingFuture>[]) | 12125 .putIfAbsent(source, () => <PendingFuture>[]) |
| 12116 .add(pendingFuture); | 12126 .add(pendingFuture); |
| 12117 } | 12127 } |
| 12118 return pendingFuture.future; | 12128 return pendingFuture.future; |
| 12119 } | 12129 } |
| 12120 } | 12130 } |
| OLD | NEW |