| 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 // This code was auto-generated, is not intended to be edited, and is subject to | |
| 6 // significant change. Please see the README file for more information. | |
| 7 | |
| 8 library engine; | 5 library engine; |
| 9 | 6 |
| 10 import 'dart:async'; | 7 import 'dart:async'; |
| 11 import 'dart:collection'; | 8 import 'dart:collection'; |
| 12 import 'dart:math' as math; | 9 import 'dart:math' as math; |
| 13 | 10 |
| 14 import 'package:analyzer/src/cancelable_future.dart'; | 11 import 'package:analyzer/src/cancelable_future.dart'; |
| 15 import 'package:analyzer/src/context/cache.dart' as cache; | 12 import 'package:analyzer/src/context/cache.dart' as cache; |
| 16 import 'package:analyzer/src/context/context.dart' as newContext; | 13 import 'package:analyzer/src/context/context.dart' as newContext; |
| 17 import 'package:analyzer/src/generated/incremental_resolution_validator.dart'; | 14 import 'package:analyzer/src/generated/incremental_resolution_validator.dart'; |
| (...skipping 11908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11926 PendingFuture pendingFuture = | 11923 PendingFuture pendingFuture = |
| 11927 new PendingFuture<T>(_context, source, computeValue); | 11924 new PendingFuture<T>(_context, source, computeValue); |
| 11928 if (!pendingFuture.evaluate(sourceEntry)) { | 11925 if (!pendingFuture.evaluate(sourceEntry)) { |
| 11929 _context._pendingFutureSources | 11926 _context._pendingFutureSources |
| 11930 .putIfAbsent(source, () => <PendingFuture>[]) | 11927 .putIfAbsent(source, () => <PendingFuture>[]) |
| 11931 .add(pendingFuture); | 11928 .add(pendingFuture); |
| 11932 } | 11929 } |
| 11933 return pendingFuture.future; | 11930 return pendingFuture.future; |
| 11934 } | 11931 } |
| 11935 } | 11932 } |
| OLD | NEW |