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

Unified Diff: runtime/vm/ast_printer.cc

Issue 1644793002: Replace intptr_t with TokenDescriptor (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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: runtime/vm/ast_printer.cc
diff --git a/runtime/vm/ast_printer.cc b/runtime/vm/ast_printer.cc
index 7cc69d4596a90ca00f053a3f8f30dda3b2046b34..ef3bddc14a57f3b6feab2fc0c5316ce9cfd9cfe9 100644
--- a/runtime/vm/ast_printer.cc
+++ b/runtime/vm/ast_printer.cc
@@ -31,8 +31,8 @@ void AstPrinter::VisitSequenceNode(SequenceNode* node) {
THR_Print("(%s (scope \"%p\"", node->PrettyName(), scope);
if (scope != NULL) {
THR_Print(" (%" Pd "-%" Pd ") loop %d",
- scope->begin_token_pos(),
- scope->end_token_pos(),
+ scope->begin_token_pos().value(),
Ivan Posva 2016/02/01 17:16:52 ditto.
Cutch 2016/02/02 18:00:20 Done.
+ scope->end_token_pos().value(),
scope->loop_level());
if (scope->HasContextLevel()) {
THR_Print(" context %d captures %d",
@@ -479,8 +479,8 @@ void AstPrinter::PrintLocalScopeVariable(const LocalScope* scope,
THR_Print(" lev %d", var->owner()->function_level());
}
THR_Print(" valid %" Pd "-%" Pd ")\n",
- var->token_pos(),
- scope->end_token_pos());
+ var->token_pos().value(),
+ scope->end_token_pos().value());
}
@@ -552,8 +552,8 @@ void AstPrinter::PrintFunctionScope(const ParsedFunction& parsed_function) {
}
}
THR_Print(" valid %" Pd "-%" Pd ")\n",
- param->token_pos(),
- scope->end_token_pos());
+ param->token_pos().value(),
+ scope->end_token_pos().value());
pos++;
}
// Visit remaining non-parameter variables and children scopes.

Powered by Google App Engine
This is Rietveld 408576698