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

Unified Diff: lib/compiler/implementation/constant_system_dart.dart

Issue 10916232: Implement checked mode for const constructors. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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: lib/compiler/implementation/constant_system_dart.dart
===================================================================
--- lib/compiler/implementation/constant_system_dart.dart (revision 12366)
+++ lib/compiler/implementation/constant_system_dart.dart (working copy)
@@ -342,4 +342,8 @@
bool isString(Constant constant) => constant.isString();
bool isBool(Constant constant) => constant.isBool();
bool isNull(Constant constant) => constant.isNull();
-}
+
+ bool isSubtype(Compiler compiler, DartType s, DartType t) {
+ return compiler.types.isSubtype(s, t);
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698