Index: pkg/compiler/lib/src/resolution/operators.dart |
diff --git a/pkg/compiler/lib/src/resolution/operators.dart b/pkg/compiler/lib/src/resolution/operators.dart |
index e862c30e89d48e06c9562cbbe912bc9cf7e8b839..7a046c98a704fb8c9c33ac84d339df91cae82f1e 100644 |
--- a/pkg/compiler/lib/src/resolution/operators.dart |
+++ b/pkg/compiler/lib/src/resolution/operators.dart |
@@ -5,6 +5,7 @@ |
library dart2js.operators; |
import '../elements/elements.dart'; |
+import '../universe/universe.dart'; |
enum UnaryOperatorKind { |
NOT, |
@@ -21,6 +22,11 @@ class UnaryOperator { |
bool get isUserDefinable => selectorName != null; |
+ Selector get selector => new Selector( |
+ SelectorKind.OPERATOR, |
+ new PublicName(selectorName), |
+ CallStructure.NO_ARGS); |
+ |
String toString() => name; |
/// The unary ! operator. |