| 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(),
|
| + 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.
|
|
|