| 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 6226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6237 /** | 6237 /** |
| 6238 * The maximum number of sources for which AST structures should be kept in | 6238 * The maximum number of sources for which AST structures should be kept in |
| 6239 * the cache. | 6239 * the cache. |
| 6240 */ | 6240 */ |
| 6241 int cacheSize = DEFAULT_CACHE_SIZE; | 6241 int cacheSize = DEFAULT_CACHE_SIZE; |
| 6242 | 6242 |
| 6243 /** | 6243 /** |
| 6244 * A flag indicating whether analysis is to generate dart2js related hint | 6244 * A flag indicating whether analysis is to generate dart2js related hint |
| 6245 * results. | 6245 * results. |
| 6246 */ | 6246 */ |
| 6247 bool dart2jsHint = true; | 6247 bool dart2jsHint = false; |
| 6248 | 6248 |
| 6249 /** | 6249 /** |
| 6250 * A flag indicating whether generic methods are to be supported (DEP 22). | 6250 * A flag indicating whether generic methods are to be supported (DEP 22). |
| 6251 */ | 6251 */ |
| 6252 bool enableGenericMethods = false; | 6252 bool enableGenericMethods = false; |
| 6253 | 6253 |
| 6254 /** | 6254 /** |
| 6255 * A flag indicating whether analysis is to strictly follow the specification | 6255 * A flag indicating whether analysis is to strictly follow the specification |
| 6256 * when generating warnings on "call" methods (fixes dartbug.com/21938). | 6256 * when generating warnings on "call" methods (fixes dartbug.com/21938). |
| 6257 */ | 6257 */ |
| (...skipping 5665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11923 PendingFuture pendingFuture = | 11923 PendingFuture pendingFuture = |
| 11924 new PendingFuture<T>(_context, source, computeValue); | 11924 new PendingFuture<T>(_context, source, computeValue); |
| 11925 if (!pendingFuture.evaluate(sourceEntry)) { | 11925 if (!pendingFuture.evaluate(sourceEntry)) { |
| 11926 _context._pendingFutureSources | 11926 _context._pendingFutureSources |
| 11927 .putIfAbsent(source, () => <PendingFuture>[]) | 11927 .putIfAbsent(source, () => <PendingFuture>[]) |
| 11928 .add(pendingFuture); | 11928 .add(pendingFuture); |
| 11929 } | 11929 } |
| 11930 return pendingFuture.future; | 11930 return pendingFuture.future; |
| 11931 } | 11931 } |
| 11932 } | 11932 } |
| OLD | NEW |