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

Unified Diff: utils/template/codegen.dart

Issue 11410033: Make RegExp's constructor non-const. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment in https://codereview.chromium.org/11365196/diff/6001/pkg/intl/lib/date_format.dart Created 8 years, 1 month 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: utils/template/codegen.dart
diff --git a/utils/template/codegen.dart b/utils/template/codegen.dart
index a622fba74456df5406663c3ff6308a30d4e49840..6f566a6db14d9a020bd9b986586f0e8fe85d064e 100644
--- a/utils/template/codegen.dart
+++ b/utils/template/codegen.dart
@@ -501,7 +501,7 @@ class Codegen {
class ElemCG {
// List of identifiers and quoted strings (single and double quoted).
- var identRe = const RegExp(
+ var identRe = new RegExp(
"\s*('\"\\'\\\"[^'\"\\'\\\"]+'\"\\'\\\"|[_A-Za-z][_A-Za-z0-9]*)");
List<CGBlock> _cgBlocks;

Powered by Google App Engine
This is Rietveld 408576698