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

Unified Diff: pkg/analyzer/lib/src/generated/error_verifier.dart

Issue 894853003: Add a getter to TypeProvider for Future<Null>. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | « no previous file | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/error_verifier.dart
diff --git a/pkg/analyzer/lib/src/generated/error_verifier.dart b/pkg/analyzer/lib/src/generated/error_verifier.dart
index 0ea52160c5b5ec2baa950aaa8edb5facab13e5ab..fdefc3b6cb1ee80fe1c0c5a745472f0aafcfa338 100644
--- a/pkg/analyzer/lib/src/generated/error_verifier.dart
+++ b/pkg/analyzer/lib/src/generated/error_verifier.dart
@@ -5778,8 +5778,7 @@ class ErrorVerifier extends RecursiveAstVisitor<Object> {
// TODO(paulberry): do the right thing for generators.
if (returnExpression == null) {
if (_enclosingFunction.isAsynchronous) {
- return _typeProvider.futureType.substitute4(
- <DartType>[_typeProvider.nullType]);
+ return _typeProvider.futureNullType;
} else {
return VoidTypeImpl.instance;
}
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698