Index: pkg/compiler/lib/src/universe/use.dart |
diff --git a/pkg/compiler/lib/src/universe/use.dart b/pkg/compiler/lib/src/universe/use.dart |
index 8c899c06cdd865c802df66c0fb05cc2ff046eb3b..124f1815194b36a462133e030d03a1267355952b 100644 |
--- a/pkg/compiler/lib/src/universe/use.dart |
+++ b/pkg/compiler/lib/src/universe/use.dart |
@@ -77,6 +77,7 @@ enum StaticUseKind { |
FIELD_GET, |
FIELD_SET, |
CLOSURE, |
+ CALL_METHOD, |
CONSTRUCTOR_INVOKE, |
CONST_CONSTRUCTOR_INVOKE, |
REDIRECTION, |
@@ -377,6 +378,11 @@ class StaticUse { |
return new StaticUse.internal(element, StaticUseKind.CLOSURE); |
} |
+ /// Read of a call [method] on a closureClass. |
+ factory StaticUse.callMethod(FunctionEntity method) { |
+ return new StaticUse.internal(method, StaticUseKind.CALL_METHOD); |
+ } |
+ |
/// Use of [element] through reflection. |
factory StaticUse.mirrorUse(MemberEntity element) { |
return new StaticUse.internal(element, StaticUseKind.GENERAL); |