@@ -317,8 +317,9 @@ inline std::string pstate_source_position(AST_Node* node)
317
317
<< " -[" << end.line << " :" << end.column << " ]" ;
318
318
#ifdef DEBUG_SHARED_PTR
319
319
str << " x" << node->getRefCount () << " "
320
- << " " << node->getDbgFile ()
321
- << " @" << node->getDbgLine ();
320
+ << " {#" << node->objId << " }"
321
+ << " " << node->getDbgFile ()
322
+ << " @" << node->getDbgLine ();
322
323
#endif
323
324
return str.str ();
324
325
}
@@ -933,9 +934,9 @@ inline void debug_ast(AST_Node* node, std::string ind, Env* env)
933
934
} else if (Cast<StringExpression2>(node)) {
934
935
StringExpression2* expression = Cast<StringExpression2>(node);
935
936
// std::cerr << ind << "StringExpression " << expression;
936
- // std::cerr << " (" << pstate_source_position(node) << ")";
937
937
// std::cerr << " [" << prettyprint(expression->text()) << "]";
938
938
std::cerr << ind << " StringExpression" ;
939
+ std::cerr << " (" << pstate_source_position (node) << " )" ;
939
940
if (expression->hasQuotes ()) std::cerr << " {quoted}" ;
940
941
std::cerr << std::endl;
941
942
debug_ast (expression->text (), ind + " " );
@@ -968,9 +969,9 @@ inline void debug_ast(AST_Node* node, std::string ind, Env* env)
968
969
} else if (Cast<Interpolation>(node)) {
969
970
Interpolation* expression = Cast<Interpolation>(node);
970
971
std::cerr << ind << " Interpolation" ;
972
+ std::cerr << " (" << pstate_source_position (expression) << " )" ;
971
973
972
974
// std::cerr << ind << "Interpolation " << expression;
973
- // std::cerr << " (" << pstate_source_position(expression) << ")";
974
975
// std::cerr << " " << expression->concrete_type();
975
976
// std::cerr << " (" << pstate_source_position(node) << ")";
976
977
std::cerr << std::endl;
0 commit comments