@@ -317,8 +317,9 @@ inline std::string pstate_source_position(AST_Node* node)
317317 << " -[" << end.line << " :" << end.column << " ]" ;
318318#ifdef DEBUG_SHARED_PTR
319319 str << " x" << node->getRefCount () << " "
320- << " " << node->getDbgFile ()
321- << " @" << node->getDbgLine ();
320+ << " {#" << node->objId << " }"
321+ << " " << node->getDbgFile ()
322+ << " @" << node->getDbgLine ();
322323#endif
323324 return str.str ();
324325}
@@ -933,9 +934,9 @@ inline void debug_ast(AST_Node* node, std::string ind, Env* env)
933934 } else if (Cast<StringExpression2>(node)) {
934935 StringExpression2* expression = Cast<StringExpression2>(node);
935936 // std::cerr << ind << "StringExpression " << expression;
936- // std::cerr << " (" << pstate_source_position(node) << ")";
937937 // std::cerr << " [" << prettyprint(expression->text()) << "]";
938938 std::cerr << ind << " StringExpression" ;
939+ std::cerr << " (" << pstate_source_position (node) << " )" ;
939940 if (expression->hasQuotes ()) std::cerr << " {quoted}" ;
940941 std::cerr << std::endl;
941942 debug_ast (expression->text (), ind + " " );
@@ -968,9 +969,9 @@ inline void debug_ast(AST_Node* node, std::string ind, Env* env)
968969 } else if (Cast<Interpolation>(node)) {
969970 Interpolation* expression = Cast<Interpolation>(node);
970971 std::cerr << ind << " Interpolation" ;
972+ std::cerr << " (" << pstate_source_position (expression) << " )" ;
971973
972974 // std::cerr << ind << "Interpolation " << expression;
973- // std::cerr << " (" << pstate_source_position(expression) << ")";
974975 // std::cerr << " " << expression->concrete_type();
975976 // std::cerr << " (" << pstate_source_position(node) << ")";
976977 std::cerr << std::endl;
0 commit comments