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

Unified Diff: pkg/compiler/lib/src/core_types.dart

Issue 1170673002: Begin to compute constant expressions in resolution. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix BinaryConstantExpression.getKnownType Created 5 years, 6 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 | « pkg/compiler/lib/src/constants/values.dart ('k') | pkg/compiler/lib/src/deferred_load.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/core_types.dart
diff --git a/pkg/compiler/lib/src/core_types.dart b/pkg/compiler/lib/src/core_types.dart
index c2e66c6943c7727d4850f7ea6b424a49424708d2..d8302be7d83961fabcdbb4e7d81cdd8049aacb45 100644
--- a/pkg/compiler/lib/src/core_types.dart
+++ b/pkg/compiler/lib/src/core_types.dart
@@ -27,6 +27,9 @@ abstract class CoreTypes {
/// The `String` type defined in 'dart:core'.
InterfaceType get stringType;
+ /// The `Symbol` type defined in 'dart:core'.
+ InterfaceType get symbolType;
+
/// The `Function` type defined in 'dart:core'.
InterfaceType get functionType;
@@ -38,25 +41,34 @@ abstract class CoreTypes {
/// Returns an instance of the `List` type defined in 'dart:core' with
/// [elementType] as its type argument.
- InterfaceType listType([DartType elementType = const DynamicType()]);
+ ///
+ /// If no type argument is provided, the canonical raw type is returned.
+ InterfaceType listType([DartType elementType]);
/// Returns an instance of the `Map` type defined in 'dart:core' with
/// [keyType] and [valueType] as its type arguments.
- InterfaceType mapType([DartType keyType = const DynamicType(),
- DartType valueType = const DynamicType()]);
+ ///
+ /// If no type arguments are provided, the canonical raw type is returned.
+ InterfaceType mapType([DartType keyType, DartType valueType]);
/// Returns an instance of the `Iterable` type defined in 'dart:core' with
/// [elementType] as its type argument.
- InterfaceType iterableType([DartType elementType = const DynamicType()]);
+ ///
+ /// If no type argument is provided, the canonical raw type is returned.
+ InterfaceType iterableType([DartType elementType]);
/// The `Future` class declaration.
ClassElement get futureClass;
/// Returns an instance of the `Future` type defined in 'dart:async' with
/// [elementType] as its type argument.
- InterfaceType futureType([DartType elementType = const DynamicType()]);
+ ///
+ /// If no type argument is provided, the canonical raw type is returned.
+ InterfaceType futureType([DartType elementType]);
/// Returns an instance of the `Stream` type defined in 'dart:async' with
/// [elementType] as its type argument.
- InterfaceType streamType([DartType elementType = const DynamicType()]);
+ ///
+ /// If no type argument is provided, the canonical raw type is returned.
+ InterfaceType streamType([DartType elementType]);
}
« no previous file with comments | « pkg/compiler/lib/src/constants/values.dart ('k') | pkg/compiler/lib/src/deferred_load.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698