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

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

Issue 2581803002: Add access to FutureOr in TypeProviders (and add implementation in mock sdks) (Closed)
Patch Set: Created 4 years 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 4aac8475c217dade601a3072d24ba9ad9a533fb3..56f172ace196d22d652526d0c950eea4b3e91570 100644
--- a/pkg/analyzer/lib/src/generated/resolver.dart
+++ b/pkg/analyzer/lib/src/generated/resolver.dart
@@ -8997,6 +8997,11 @@ abstract class TypeProvider {
InterfaceType get futureNullType;
/**
+ * Return the type representing the built-in type 'FutureOr'.
+ */
+ InterfaceType get futureOrType;
+
+ /**
* Return the type representing the built-in type 'Future'.
*/
InterfaceType get futureType;
@@ -9185,6 +9190,11 @@ class TypeProviderImpl extends TypeProviderBase {
InterfaceType _futureNullType;
/**
+ * The type representing the built-in type 'FutureOr'.
+ */
+ InterfaceType _futureOrType;
+
+ /**
* The type representing the built-in type 'Future'.
*/
InterfaceType _futureType;
@@ -9315,6 +9325,9 @@ class TypeProviderImpl extends TypeProviderBase {
InterfaceType get futureNullType => _futureNullType;
@override
+ InterfaceType get futureOrType => _futureOrType;
+
+ @override
InterfaceType get futureType => _futureType;
@override
@@ -9399,6 +9412,7 @@ class TypeProviderImpl extends TypeProviderBase {
_doubleType = _getType(coreNamespace, "double");
_dynamicType = DynamicTypeImpl.instance;
_functionType = _getType(coreNamespace, "Function");
+ _futureOrType = _getType(asyncNamespace, "FutureOr");
_futureType = _getType(asyncNamespace, "Future");
_intType = _getType(coreNamespace, "int");
_iterableType = _getType(coreNamespace, "Iterable");

Powered by Google App Engine
This is Rietveld 408576698