Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Unified Diff: pkg/compiler/lib/src/resolution/operators.dart

Issue 1152903003: Create SendStructure for unary and binary in resolution. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698