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

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

Issue 1069473002: Provide access to list of types that cannot be subtyped (issue 23125) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 0d20c8b1c7b4dbb7081d8dcfc2cfcab0126cc129..778b354c40f9ab08e49dcd0e7846e2450a91cc91 100644
--- a/pkg/analyzer/lib/src/generated/resolver.dart
+++ b/pkg/analyzer/lib/src/generated/resolver.dart
@@ -13203,43 +13203,31 @@ class TypePromotionManager_TypePromoteScope {
abstract class TypeProvider {
/**
* Return the type representing the built-in type 'bool'.
- *
- * @return the type representing the built-in type 'bool'
*/
InterfaceType get boolType;
/**
* Return the type representing the type 'bottom'.
- *
- * @return the type representing the type 'bottom'
*/
DartType get bottomType;
/**
* Return the type representing the built-in type 'Deprecated'.
- *
- * @return the type representing the built-in type 'Deprecated'
*/
InterfaceType get deprecatedType;
/**
* Return the type representing the built-in type 'double'.
- *
- * @return the type representing the built-in type 'double'
*/
InterfaceType get doubleType;
/**
* Return the type representing the built-in type 'dynamic'.
- *
- * @return the type representing the built-in type 'dynamic'
*/
DartType get dynamicType;
/**
* Return the type representing the built-in type 'Function'.
- *
- * @return the type representing the built-in type 'Function'
*/
InterfaceType get functionType;
@@ -13260,8 +13248,6 @@ abstract class TypeProvider {
/**
* Return the type representing the built-in type 'int'.
- *
- * @return the type representing the built-in type 'int'
*/
InterfaceType get intType;
@@ -13277,15 +13263,17 @@ abstract class TypeProvider {
/**
* Return the type representing the built-in type 'List'.
- *
- * @return the type representing the built-in type 'List'
*/
InterfaceType get listType;
/**
+ * Return a list containing all of the types that cannot be either extended or
+ * implemented.
+ */
+ List<InterfaceType> get nonSubtypableTypes;
vsm 2015/04/07 20:51:12 sealedTypes is another option
+
+ /**
* Return the type representing the built-in type 'Map'.
- *
- * @return the type representing the built-in type 'Map'
*/
InterfaceType get mapType;
@@ -13296,29 +13284,21 @@ abstract class TypeProvider {
/**
* Return the type representing the built-in type 'Null'.
- *
- * @return the type representing the built-in type 'null'
*/
InterfaceType get nullType;
/**
* Return the type representing the built-in type 'num'.
- *
- * @return the type representing the built-in type 'num'
*/
InterfaceType get numType;
/**
* Return the type representing the built-in type 'Object'.
- *
- * @return the type representing the built-in type 'Object'
*/
InterfaceType get objectType;
/**
* Return the type representing the built-in type 'StackTrace'.
- *
- * @return the type representing the built-in type 'StackTrace'
*/
InterfaceType get stackTraceType;
@@ -13334,22 +13314,16 @@ abstract class TypeProvider {
/**
* Return the type representing the built-in type 'String'.
- *
- * @return the type representing the built-in type 'String'
*/
InterfaceType get stringType;
/**
* Return the type representing the built-in type 'Symbol'.
- *
- * @return the type representing the built-in type 'Symbol'
*/
InterfaceType get symbolType;
/**
* Return the type representing the built-in type 'Type'.
- *
- * @return the type representing the built-in type 'Type'
*/
InterfaceType get typeType;
@@ -13553,6 +13527,16 @@ class TypeProviderImpl implements TypeProvider {
InterfaceType get mapType => _mapType;
@override
+ List<InterfaceType> get nonSubtypableTypes => <InterfaceType>[
+ nullType,
+ numType,
+ intType,
+ doubleType,
+ boolType,
+ stringType
+ ];
+
+ @override
DartObjectImpl get nullObject {
if (_nullObject == null) {
_nullObject = new DartObjectImpl(nullType, NullState.NULL_STATE);
« 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