| Index: sdk/lib/_internal/compiler/implementation/inferrer/type_graph_nodes.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/inferrer/type_graph_nodes.dart (revision 31184)
|
| +++ sdk/lib/_internal/compiler/implementation/inferrer/type_graph_nodes.dart (working copy)
|
| @@ -210,6 +210,12 @@
|
| final Element element;
|
|
|
| /**
|
| + * If [element] is a function, [closurizedCount] is the number of
|
| + * times it is closurized. The value gets updated while infering.
|
| + */
|
| + int closurizedCount = 0;
|
| +
|
| + /**
|
| * This map contains the callers of [element]. It stores all unique call sites
|
| * to enable counting the global number of call sites of [element].
|
| *
|
| @@ -256,6 +262,8 @@
|
| return count == 1;
|
| }
|
|
|
| + bool isClosurized() => closurizedCount > 0;
|
| +
|
| TypeMask handleSpecialCases(TypeGraphInferrerEngine inferrer) {
|
| if (abandonInferencing) {
|
| return type;
|
|
|