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

Unified Diff: regexp2000/src/ast.cc

Issue 8765: * Use new RegExp parser. (Closed)
Patch Set: Use new RegExp parser. Created 12 years, 2 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 | « regexp2000/src/ast.h ('k') | regexp2000/src/jsregexp.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: regexp2000/src/ast.cc
diff --git a/regexp2000/src/ast.cc b/regexp2000/src/ast.cc
index c0c16dedee5df73af3c19691b456c73642dd40a6..f93d739d4e13fdf95188dae45b6be960a3819959 100644
--- a/regexp2000/src/ast.cc
+++ b/regexp2000/src/ast.cc
@@ -190,6 +190,19 @@ void Visitor::VisitExpressions(ZoneList<Expression*>* expressions) {
FOR_EACH_REG_EXP_NODE_TYPE(MAKE_ACCEPT)
#undef MAKE_ACCEPT
+#define MAKE_CONVERSION(Name) \
+ RegExp##Name* RegExpTree::As##Name() { \
+ return NULL; \
+ }
+ FOR_EACH_REG_EXP_NODE_TYPE(MAKE_CONVERSION)
+#undef MAKE_CONVERSION
+
+#define MAKE_CONVERSION(Name) \
+ RegExp##Name* RegExp##Name::As##Name() { \
+ return this; \
+ }
+FOR_EACH_REG_EXP_NODE_TYPE(MAKE_CONVERSION)
+#undef MAKE_CONVERSION
RegExpEmpty RegExpEmpty::kInstance;
« no previous file with comments | « regexp2000/src/ast.h ('k') | regexp2000/src/jsregexp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698