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

Unified Diff: vm/ast_printer.cc

Issue 10632009: Make the parser agnostic to the TokenStream implementation. This is the first step towards compacti… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 6 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 | « vm/ast.cc ('k') | vm/class_finalizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/ast_printer.cc
===================================================================
--- vm/ast_printer.cc (revision 9042)
+++ vm/ast_printer.cc (working copy)
@@ -402,7 +402,7 @@
} else if (var->owner()->function_level() != 0) {
OS::Print(" lev %d", var->owner()->function_level());
}
- OS::Print(" valid %d-%d)", var->token_index(), scope->end_token_index());
+ OS::Print(" valid %d-%d)", var->token_pos(), scope->end_token_pos());
}
const LocalScope* child = scope->child();
while (child != NULL) {
@@ -462,7 +462,7 @@
OS::Print(" ctx %d", param->owner()->context_level());
}
}
- OS::Print(" valid %d-%d)", param->token_index(), scope->end_token_index());
+ OS::Print(" valid %d-%d)", param->token_pos(), scope->end_token_pos());
pos++;
}
// Visit remaining non-parameter variables and children scopes.
« no previous file with comments | « vm/ast.cc ('k') | vm/class_finalizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698