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

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

Issue 897673003: Implement new return type checking rules in analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reformat and sort class members. 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
Index: pkg/analyzer/lib/src/generated/resolver.dart
diff --git a/pkg/analyzer/lib/src/generated/resolver.dart b/pkg/analyzer/lib/src/generated/resolver.dart
index 76d159c232500a86b7ab16cd35a310cfdeb77ad3..123ceadbcbcabce8b70fc9d0aa72a297b822f260 100644
--- a/pkg/analyzer/lib/src/generated/resolver.dart
+++ b/pkg/analyzer/lib/src/generated/resolver.dart
@@ -13410,6 +13410,11 @@ abstract class TypeProvider {
InterfaceType get functionType;
/**
+ * Return the type representing 'Future<dynamic>'.
+ */
+ InterfaceType get futureDynamicType;
+
+ /**
* Return the type representing 'Future<Null>'.
*/
InterfaceType get futureNullType;
@@ -13551,6 +13556,11 @@ class TypeProviderImpl implements TypeProvider {
InterfaceType _functionType;
/**
+ * The type representing 'Future<dynamic>'.
+ */
+ InterfaceType _futureDynamicType;
+
+ /**
* The type representing 'Future<Null>'.
*/
InterfaceType _futureNullType;
@@ -13663,6 +13673,9 @@ class TypeProviderImpl implements TypeProvider {
InterfaceType get functionType => _functionType;
@override
+ InterfaceType get futureDynamicType => _futureDynamicType;
+
+ @override
InterfaceType get futureNullType => _futureNullType;
@override
@@ -13762,6 +13775,7 @@ class TypeProviderImpl implements TypeProvider {
_symbolType = _getType(coreNamespace, "Symbol");
_typeType = _getType(coreNamespace, "Type");
_undefinedType = UndefinedTypeImpl.instance;
+ _futureDynamicType = _futureType.substitute4(<DartType>[_dynamicType]);
_futureNullType = _futureType.substitute4(<DartType>[_nullType]);
_iterableDynamicType = _iterableType.substitute4(<DartType>[_dynamicType]);
_streamDynamicType = _streamType.substitute4(<DartType>[_dynamicType]);
« no previous file with comments | « pkg/analyzer/lib/src/generated/error_verifier.dart ('k') | pkg/analyzer/lib/src/generated/testing/test_type_provider.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698