@@ -14,13 +14,16 @@ struct PrinterConfigObj : public Object {
1414 int32_t indent_spaces = 2 ;
1515 int8_t print_line_numbers = 0 ;
1616 int32_t num_context_lines = -1 ;
17+ bool print_addr_on_dup_var = false ;
1718 mlc::List<ObjectPath> path_to_underline;
1819
1920 PrinterConfigObj () = default ;
2021 explicit PrinterConfigObj (bool def_free_var, int32_t indent_spaces, int8_t print_line_numbers,
21- int32_t num_context_lines, mlc::List<ObjectPath> path_to_underline)
22+ int32_t num_context_lines, bool print_addr_on_dup_var,
23+ mlc::List<ObjectPath> path_to_underline)
2224 : def_free_var(def_free_var), indent_spaces(indent_spaces), print_line_numbers(print_line_numbers),
23- num_context_lines(num_context_lines), path_to_underline(path_to_underline) {}
25+ num_context_lines(num_context_lines), print_addr_on_dup_var(print_addr_on_dup_var),
26+ path_to_underline(path_to_underline) {}
2427 MLC_DEF_DYN_TYPE (MLC_EXPORTS, PrinterConfigObj, Object, " mlc.printer.PrinterConfig" );
2528};
2629
@@ -31,11 +34,13 @@ struct PrinterConfig : public ObjectRef {
3134 .Field(" print_line_numbers" , &PrinterConfigObj::print_line_numbers)
3235 .Field(" num_context_lines" , &PrinterConfigObj::num_context_lines)
3336 .Field(" path_to_underline" , &PrinterConfigObj::path_to_underline)
34- .StaticFn(" __init__" , InitOf<PrinterConfigObj, bool , int32_t , int8_t , int32_t , mlc::List<ObjectPath>>);
37+ .Field(" print_addr_on_dup_var" , &PrinterConfigObj::print_addr_on_dup_var)
38+ .StaticFn(" __init__" , InitOf<PrinterConfigObj, bool , int32_t , int8_t , int32_t , bool , mlc::List<ObjectPath>>);
3539 explicit PrinterConfig (bool def_free_var = true , int32_t indent_spaces = 2 , int8_t print_line_numbers = 0 ,
36- int32_t num_context_lines = -1 , mlc::List<ObjectPath> path_to_underline = {})
40+ int32_t num_context_lines = -1 , bool print_addr_on_dup_var = false ,
41+ mlc::List<ObjectPath> path_to_underline = {})
3742 : PrinterConfig(PrinterConfig::New(def_free_var, indent_spaces, print_line_numbers, num_context_lines,
38- path_to_underline)) {}
43+ print_addr_on_dup_var, path_to_underline)) {}
3944};
4045
4146} // namespace printer
0 commit comments