| Index: pkg/compiler/lib/src/closure.dart
|
| diff --git a/pkg/compiler/lib/src/closure.dart b/pkg/compiler/lib/src/closure.dart
|
| index 5b43c620643ced8991ec76a4be9b896183b556e6..4b114d38a174976f0ed95ee0ae6460cedba1eca7 100644
|
| --- a/pkg/compiler/lib/src/closure.dart
|
| +++ b/pkg/compiler/lib/src/closure.dart
|
| @@ -51,6 +51,9 @@ abstract class ClosureDataLookup<T> {
|
| ClosureRepresentationInfo getClosureRepresentationInfo(
|
| covariant Entity member);
|
|
|
| + ClosureRepresentationInfo getClosureRepresentationInfoForTesting(
|
| + covariant Entity member);
|
| +
|
| /// Look up information about a loop, in case any variables it declares need
|
| /// to be boxed/snapshotted.
|
| CapturedLoopScope getCapturedLoopScope(T loopNode);
|
| @@ -289,6 +292,11 @@ class ClosureTask extends ClosureConversionTask<Node> {
|
| return getClosureToClassMapping(member);
|
| }
|
|
|
| + ClosureRepresentationInfo getClosureRepresentationInfoForTesting(
|
| + Element member) {
|
| + return getClosureRepresentationInfo(member);
|
| + }
|
| +
|
| CapturedLoopScope getCapturedLoopScope(Node loopNode) {
|
| var value = _closureInfoMap[loopNode];
|
| return value == null ? const CapturedLoopScope() : value;
|
|
|