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

Unified Diff: pkg/analyzer/lib/dart/element/type.dart

Issue 2630023003: Report HintCode.MISSING_RETURN for async functions with return type that matters. (Closed)
Patch Set: Created 3 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/analyzer/lib/dart/element/type.dart
diff --git a/pkg/analyzer/lib/dart/element/type.dart b/pkg/analyzer/lib/dart/element/type.dart
index 2ff00f0d4219bfaa9bffc68fe2eca5c6d4947318..fe0776559211f1859361c85caf551b82a1ac68ef 100644
--- a/pkg/analyzer/lib/dart/element/type.dart
+++ b/pkg/analyzer/lib/dart/element/type.dart
@@ -70,6 +70,12 @@ abstract class DartType implements ResolutionType {
bool get isDartCoreFunction;
/**
+ * Return `true` if this type represents the type 'Null' defined in the
+ * dart:core library.
+ */
+ bool get isDartCoreNull;
+
+ /**
* Return `true` if this type represents the type 'dynamic'.
*/
bool get isDynamic;
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/element/type.dart » ('j') | pkg/analyzer/test/generated/non_error_resolver_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698