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

Unified Diff: src/ast.cc

Issue 10944: Restructure analysis (Closed)
Patch Set: Created 12 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
« no previous file with comments | « src/ast.h ('k') | src/jsregexp.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast.cc
diff --git a/src/ast.cc b/src/ast.cc
index ad6aad3f3f64b6f6b1627e1fb39646ec9a55dd8d..416d1444c4dc8f44dec1abecc057ab8464b15ac6 100644
--- a/src/ast.cc
+++ b/src/ast.cc
@@ -233,9 +233,9 @@ RegExpUnparser::RegExpUnparser() : stream_(&alloc_) {
void* RegExpUnparser::VisitDisjunction(RegExpDisjunction* that, void* data) {
stream()->Add("(|");
- for (int i = 0; i < that->nodes()->length(); i++) {
+ for (int i = 0; i < that->alternatives()->length(); i++) {
stream()->Add(" ");
- that->nodes()->at(i)->Accept(this, data);
+ that->alternatives()->at(i)->Accept(this, data);
}
stream()->Add(")");
return NULL;
« no previous file with comments | « src/ast.h ('k') | src/jsregexp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698