Index: sdk/lib/_internal/compiler/implementation/universe/universe.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/universe/universe.dart b/sdk/lib/_internal/compiler/implementation/universe/universe.dart |
index e3e1ab88419e8e5a276c7c3f915f641ed5ced1d9..446d835cea79aa625319fcdbd7aa11d9f7ac9edc 100644 |
--- a/sdk/lib/_internal/compiler/implementation/universe/universe.dart |
+++ b/sdk/lib/_internal/compiler/implementation/universe/universe.dart |
@@ -223,6 +223,19 @@ class Selector { |
String get invocationMirrorMemberName => |
isSetter() ? '${name.slowToString()}=' : name.slowToString(); |
+ int get invocationMirrorKind { |
+ const int METHOD = 0; |
+ const int GETTER = 1; |
+ const int SETTER = 2; |
+ int kind = METHOD; |
+ if (isGetter()) { |
+ kind = GETTER; |
+ } else if (isSetter()) { |
+ kind = SETTER; |
+ } |
+ return kind; |
+ } |
+ |
bool applies(Element element, Compiler compiler) |
=> appliesUntyped(element, compiler); |