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

Unified Diff: lib/compiler/implementation/constant_system.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
===================================================================
--- lib/compiler/implementation/constant_system.dart (revision 12329)
+++ lib/compiler/implementation/constant_system.dart (working copy)
@@ -50,6 +50,7 @@
Constant createString(DartString string, Node diagnosticNode);
Constant createBool(bool value);
Constant createNull();
+ bool isSubtype(Compiler compiler, DartType s, DartType t);
kasperl 2012/09/14 05:53:34 Add a comment that explains why the constant syste
ngeoffray 2012/09/14 09:44:56 Done.
/** Returns true if the [constant] is an integer at runtime. */
bool isInt(Constant constant);

Powered by Google App Engine
This is Rietveld 408576698