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

Unified Diff: pkg/compiler/lib/src/constants/expressions.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
Index: pkg/compiler/lib/src/constants/expressions.dart
diff --git a/pkg/compiler/lib/src/constants/expressions.dart b/pkg/compiler/lib/src/constants/expressions.dart
index f1ad90bfae1106d9e36724eb6c7857f3f068b8a2..02f7b1a42a59d5bbae20b161acfd5bbac7272565 100644
--- a/pkg/compiler/lib/src/constants/expressions.dart
+++ b/pkg/compiler/lib/src/constants/expressions.dart
@@ -804,6 +804,7 @@ class BinaryConstantExpression extends ConstantExpression {
BinaryOperatorKind.GTEQ: 7,
BinaryOperatorKind.LTEQ: 7,
BinaryOperatorKind.MOD: 13,
+ BinaryOperatorKind.IF_NULL: 3,
};
}
@@ -1605,4 +1606,4 @@ class ConstExpPrinter extends ConstantExpressionVisitor {
}
String toString() => sb.toString();
-}
+}
« no previous file with comments | « pkg/compiler/lib/src/constants/constant_system.dart ('k') | pkg/compiler/lib/src/js_backend/constant_system_javascript.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698