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 10410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10421 | 10421 |
10422 @override | 10422 @override |
10423 Object visitRedirectingConstructorInvocation( | 10423 Object visitRedirectingConstructorInvocation( |
10424 RedirectingConstructorInvocation node) { | 10424 RedirectingConstructorInvocation node) { |
10425 node.staticElement = null; | 10425 node.staticElement = null; |
10426 return super.visitRedirectingConstructorInvocation(node); | 10426 return super.visitRedirectingConstructorInvocation(node); |
10427 } | 10427 } |
10428 | 10428 |
10429 @override | 10429 @override |
10430 Object visitSimpleIdentifier(SimpleIdentifier node) { | 10430 Object visitSimpleIdentifier(SimpleIdentifier node) { |
10431 if (eraseDeclarations || !node.inDeclarationContext()) { | 10431 if (eraseDeclarations || !(node.inDeclarationContext())) { |
10432 node.staticElement = null; | 10432 node.staticElement = null; |
10433 } | 10433 } |
10434 node.propagatedElement = null; | 10434 node.propagatedElement = null; |
10435 return super.visitSimpleIdentifier(node); | 10435 return super.visitSimpleIdentifier(node); |
10436 } | 10436 } |
10437 | 10437 |
10438 @override | 10438 @override |
10439 Object visitSuperConstructorInvocation(SuperConstructorInvocation node) { | 10439 Object visitSuperConstructorInvocation(SuperConstructorInvocation node) { |
10440 node.staticElement = null; | 10440 node.staticElement = null; |
10441 return super.visitSuperConstructorInvocation(node); | 10441 return super.visitSuperConstructorInvocation(node); |
(...skipping 1609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12051 PendingFuture pendingFuture = | 12051 PendingFuture pendingFuture = |
12052 new PendingFuture<T>(_context, source, computeValue); | 12052 new PendingFuture<T>(_context, source, computeValue); |
12053 if (!pendingFuture.evaluate(sourceEntry)) { | 12053 if (!pendingFuture.evaluate(sourceEntry)) { |
12054 _context._pendingFutureSources | 12054 _context._pendingFutureSources |
12055 .putIfAbsent(source, () => <PendingFuture>[]) | 12055 .putIfAbsent(source, () => <PendingFuture>[]) |
12056 .add(pendingFuture); | 12056 .add(pendingFuture); |
12057 } | 12057 } |
12058 return pendingFuture.future; | 12058 return pendingFuture.future; |
12059 } | 12059 } |
12060 } | 12060 } |
OLD | NEW |