)]}'
{
  "commit": "ab304e8f24b9cceed70e128b72e1d3ce55ad6167",
  "tree": "c4b8b15835258807b069ff3c38ad405b00e8464a",
  "parents": [
    "0f72b2d23c2cc89f9843e6f9086a61e1ddc19c40"
  ],
  "author": {
    "name": "cuishuang",
    "email": "imcusg@gmail.com",
    "time": "Sat Jul 18 14:06:27 2026 +0800"
  },
  "committer": {
    "name": "Alan Donovan",
    "email": "adonovan@google.com",
    "time": "Wed Jul 22 12:34:12 2026 -0700"
  },
  "message": "gopls/internal/analysis/simplifycompositelit: preserve comments in fixes\n\nThe suggested fix for redundant pointer composite literals assumed that\nthe \u0026 token was immediately before the literal type. When a comment\nappeared between them, the edit removed the character before the type\ninstead of the \u0026, producing invalid Go code.\n\nDelete the \u0026 token and the redundant literal type using separate text\nedits. This preserves any comments between them and produces the same\nsimplification as gofmt -s.\n\nAdd a regression test for a comment between \u0026 and the literal type.\n\nFixes golang/go#80459\n\nChange-Id: I052a3ee901d9bc6f51473f9556c479d5eb837d4f\nReviewed-on: https://go-review.googlesource.com/c/tools/+/802440\nLUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com \u003cgolang-scoped@luci-project-accounts.iam.gserviceaccount.com\u003e\nReviewed-by: Carlos Amedee \u003ccarlos@golang.org\u003e\nReviewed-by: Hongxiang Jiang \u003chxjiang@golang.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "397b13520f35f118333826c694ab79b433463657",
      "old_mode": 33188,
      "old_path": "gopls/internal/analysis/simplifycompositelit/simplifycompositelit.go",
      "new_id": "52d87ea4253186be37e113170c29a1714fb8b247",
      "new_mode": 33188,
      "new_path": "gopls/internal/analysis/simplifycompositelit/simplifycompositelit.go"
    },
    {
      "type": "modify",
      "old_id": "9c15556db62967a780391bfd0f872a63a73ada48",
      "old_mode": 33188,
      "old_path": "gopls/internal/analysis/simplifycompositelit/testdata/src/a/a.go",
      "new_id": "50ebb40b653be6a2f9b75fc123b0241b1172989a",
      "new_mode": 33188,
      "new_path": "gopls/internal/analysis/simplifycompositelit/testdata/src/a/a.go"
    },
    {
      "type": "modify",
      "old_id": "e7e9e1846d1992f5db4f5bc2b3a843ee95e1f93c",
      "old_mode": 33188,
      "old_path": "gopls/internal/analysis/simplifycompositelit/testdata/src/a/a.go.golden",
      "new_id": "36ef8cbfc46e095098d9db2209383431b80426fa",
      "new_mode": 33188,
      "new_path": "gopls/internal/analysis/simplifycompositelit/testdata/src/a/a.go.golden"
    }
  ]
}
