export fn decl_name(decl_index: Decl.Index) String
export fn decl_name(decl_index: Decl.Index) String { const decl = decl_index.get(); string_result.clearRetainingCapacity(); const name = n: { if (decl.parent == .none) { // Then it is the root struct of a file. break :n std.fs.path.stem(decl.file.path()); } break :n decl.extra_info().name; }; string_result.appendSlice(gpa, name) catch @panic("OOM"); return String.init(string_result.items); }