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

Unified Diff: pkg/compiler/lib/src/constants/constant_system.dart

Issue 1493693002: Make ?? a compile-time constant operator. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Move VM/analyzer parts to separate CLs. Created 4 years, 11 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
« no previous file with comments | « pkg/compiler/lib/src/constant_system_dart.dart ('k') | pkg/compiler/lib/src/constants/expressions.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/constants/constant_system.dart
diff --git a/pkg/compiler/lib/src/constants/constant_system.dart b/pkg/compiler/lib/src/constants/constant_system.dart
index d99d795946700c3b8580fba918d6880352f36823..06c9fad9740a89c13f0933538433c79963332c8c 100644
--- a/pkg/compiler/lib/src/constants/constant_system.dart
+++ b/pkg/compiler/lib/src/constants/constant_system.dart
@@ -43,6 +43,7 @@ abstract class ConstantSystem {
BinaryOperation get greaterEqual;
BinaryOperation get greater;
BinaryOperation get identity;
+ BinaryOperation get ifNull;
BinaryOperation get lessEqual;
BinaryOperation get less;
BinaryOperation get modulo;
@@ -118,6 +119,7 @@ abstract class ConstantSystem {
case BinaryOperatorKind.GT: return greater;
case BinaryOperatorKind.GTEQ: return greaterEqual;
case BinaryOperatorKind.EQ: return equal;
+ case BinaryOperatorKind.IF_NULL: return ifNull;
default: return null;
}
}
« no previous file with comments | « pkg/compiler/lib/src/constant_system_dart.dart ('k') | pkg/compiler/lib/src/constants/expressions.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698