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

Unified Diff: pkg/analyzer/test/src/summary/resynthesize_common.dart

Issue 2514353005: Add support for "??" to summaries. (Closed)
Patch Set: Created 4 years, 1 month 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/analyzer/test/src/summary/resynthesize_common.dart
diff --git a/pkg/analyzer/test/src/summary/resynthesize_common.dart b/pkg/analyzer/test/src/summary/resynthesize_common.dart
index be1ba73935d0d1d346dc3dcf20e2d6aebb7b000d..c69ad1a46ec29eaa8997b8b231e5cf5c6e36499c 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart
@@ -2303,6 +2303,12 @@ const vIdentical = (1 == 2) ? 11 : 22;
''');
}
+ test_const_topLevel_ifNull() {
+ checkLibrary(r'''
+const vIfNull = 1 ? 2.0;
scheglov 2016/11/22 17:51:37 `1 ?? 2.0`
Paul Berry 2016/11/22 18:02:58 Thank you! Fixed. I'm surprised this didn't lead
+''');
+ }
+
test_const_topLevel_literal() {
checkLibrary(r'''
const vNull = null;
« no previous file with comments | « pkg/analyzer/lib/src/summary/summarize_const_expr.dart ('k') | pkg/analyzer/test/src/summary/summary_common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698