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

Unified Diff: pkg/analyzer/test/utils.dart

Issue 2667343005: Infer Null for return type of functions with empty returns. (Closed)
Patch Set: Address comments, fix 28630, ddc expectations Created 3 years, 10 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/analyzer/test/utils.dart
diff --git a/pkg/analyzer/test/utils.dart b/pkg/analyzer/test/utils.dart
index 4d1314e2157fa0bd3f6b55129ca6bdca05ce7c82..154a266ba20c7a9dbb2e3755ad1a6596af9be815 100644
--- a/pkg/analyzer/test/utils.dart
+++ b/pkg/analyzer/test/utils.dart
@@ -229,6 +229,11 @@ class TypeAssertions {
Asserter<DartType> get isMap => hasElementOf(_typeProvider.mapType);
/**
+ * Primitive assertion for the Null type
+ */
+ Asserter<DartType> get isNull => isType(_typeProvider.nullType);
+
+ /**
* Primitive assertion for the num type
*/
Asserter<DartType> get isNum => isType(_typeProvider.numType);

Powered by Google App Engine
This is Rietveld 408576698