@@ -152,7 +152,7 @@ class ListExprReplacer : public ASR::BaseExprReplacer<ListExprReplacer>
152
152
*/
153
153
154
154
SymbolTable* list_section_symtab = al.make_new <SymbolTable>(global_scope);
155
- std::string list_type_name = ASRUtils::type_to_str_python (list_type);
155
+ std::string list_type_name = ASRUtils::get_type_code (list_type, true );
156
156
std::string fn_name = global_scope->get_unique_name (" _lcompilers_list_section_" + list_type_name);
157
157
ASR::ttype_t * item_type = ASR::down_cast<ASR::List_t>(list_type)->m_type ;
158
158
ASR::ttype_t * int_type = ASRUtils::TYPE (ASR::make_Integer_t (
@@ -409,7 +409,7 @@ class ListExprReplacer : public ASR::BaseExprReplacer<ListExprReplacer>
409
409
call_arg.m_value = is_end_present;
410
410
args.push_back (al, call_arg);
411
411
412
- std::string list_type_name = ASRUtils::type_to_str_python (x->m_type );
412
+ std::string list_type_name = ASRUtils::get_type_code (x->m_type , true );
413
413
if (list_section_func_map.find (list_type_name) == list_section_func_map.end ()) {
414
414
create_list_section_func (unit.base .base .loc ,
415
415
unit.m_global_scope , x->m_type );
@@ -437,7 +437,7 @@ class ListExprReplacer : public ASR::BaseExprReplacer<ListExprReplacer>
437
437
return result_list
438
438
*/
439
439
SymbolTable* list_concat_symtab = al.make_new <SymbolTable>(global_scope);
440
- std::string list_type_name = ASRUtils::type_to_str_python (list_type);
440
+ std::string list_type_name = ASRUtils::get_type_code (list_type, true );
441
441
std::string fn_name = global_scope->get_unique_name (" _lcompilers_list_concat_" + list_type_name);
442
442
443
443
Vec<ASR::expr_t *> arg_exprs;
@@ -535,7 +535,7 @@ class ListExprReplacer : public ASR::BaseExprReplacer<ListExprReplacer>
535
535
right_list.loc = x->m_right ->base .loc ;
536
536
right_list.m_value = x->m_right ;
537
537
args.push_back (al, right_list);
538
- std::string list_type_name = ASRUtils::type_to_str_python (x->m_type );
538
+ std::string list_type_name = ASRUtils::get_type_code (x->m_type , true );
539
539
if (list_concat_func_map.find (list_type_name) == list_concat_func_map.end ()) {
540
540
create_concat_function (unit.base .base .loc ,
541
541
unit.m_global_scope , x->m_type );
0 commit comments