| ... | @@ -1978,7 +1978,7 @@ pub const DeclGen = struct { | ... | @@ -1978,7 +1978,7 @@ pub const DeclGen = struct { |
| 1978 | if (mod.decl_exports.get(decl_index)) |exports| { | 1978 | if (mod.decl_exports.get(decl_index)) |exports| { |
| 1979 | try writer.print("{ }", .{fmtIdent(mod.intern_pool.stringToSlice(exports.items[export_index].opts.name))}); | 1979 | try writer.print("{ }", .{fmtIdent(mod.intern_pool.stringToSlice(exports.items[export_index].opts.name))}); |
| 1980 | } else if (decl.getExternDecl(mod).unwrap()) |extern_decl_index| { | 1980 | } else if (decl.getExternDecl(mod).unwrap()) |extern_decl_index| { |
| 1981 | try writer.print("{ }", .{fmtIdent(mod.intern_pool.stringToSlice(mod.declPtr(extern_decl_index).name))}); | 1981 | try writer.print("{}", .{mod.declPtr(extern_decl_index).name.fmt(&mod.intern_pool)}); |
| 1982 | } else { | 1982 | } else { |
| 1983 | // MSVC has a limit of 4095 character token length limit, and fmtIdent can (worst case), | 1983 | // MSVC has a limit of 4095 character token length limit, and fmtIdent can (worst case), |
| 1984 | // expand to 3x the length of its input, but let's cut it off at a much shorter limit. | 1984 | // expand to 3x the length of its input, but let's cut it off at a much shorter limit. |