)]}'
{
  "commit": "7eebab3f1a9ce5d339ef66426a9bf4cf55bd5842",
  "tree": "a58e88268cf16fa0677a3e7558588b7617cc1801",
  "parents": [
    "e33469676fb452337fef005f66b8d1a03d8c2d6c"
  ],
  "author": {
    "name": "Alan Donovan",
    "email": "adonovan@google.com",
    "time": "Wed Dec 04 10:37:09 2024 -0500"
  },
  "committer": {
    "name": "Gopher Robot",
    "email": "gobot@golang.org",
    "time": "Wed Dec 04 20:58:02 2024 +0000"
  },
  "message": "gopls/internal/golang: support extract variable at top level\n\nThis CL causes the refactor.extract.{variable,constant}\nlogic to support extractions outside of statement context,\ninserting a new package-level declaration.\nPreviously, it returned an error.\n\nAlso, use \"k\" as the basis for choosing names for new constants.\n\nAlso, simplify generateAvailableName et al.\n\nFixes golang/go#70665\n\nChange-Id: I769206b14662e4e70ee04ab6c0040e635ac72820\nReviewed-on: https://go-review.googlesource.com/c/tools/+/633597\nLUCI-TryBot-Result: Go LUCI \u003cgolang-scoped@luci-project-accounts.iam.gserviceaccount.com\u003e\nReviewed-by: Robert Findley \u003crfindley@google.com\u003e\nAuto-Submit: Robert Findley \u003crfindley@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "9728a317620b1bc917558c4db4633e10cdc01330",
      "old_mode": 33188,
      "old_path": "gopls/doc/release/v0.17.0.md",
      "new_id": "1a278b013cb84ec47270545d03c64ada01bdefd9",
      "new_mode": 33188,
      "new_path": "gopls/doc/release/v0.17.0.md"
    },
    {
      "type": "modify",
      "old_id": "27dc2d9e3802d1ad337fa34dfccc90561fcecd9f",
      "old_mode": 33188,
      "old_path": "gopls/internal/golang/extract.go",
      "new_id": "72d718c2faf90eda2e93f6fb5873049cedc9a37b",
      "new_mode": 33188,
      "new_path": "gopls/internal/golang/extract.go"
    },
    {
      "type": "modify",
      "old_id": "e215cc81fc8f830d82b16be994c645d51f1e3437",
      "old_mode": 33188,
      "old_path": "gopls/internal/golang/util.go",
      "new_id": "be5c7c0a73575ba629ae7e928d76e0c37539a22a",
      "new_mode": 33188,
      "new_path": "gopls/internal/golang/util.go"
    },
    {
      "type": "modify",
      "old_id": "cc4c599d748c6c8f6d442af95b4119fe0b15e1ae",
      "old_mode": 33188,
      "old_path": "gopls/internal/test/marker/testdata/codeaction/extract_variable-if.txt",
      "new_id": "ab9d76b86020464ad6cd770d56b69ac8d96e809a",
      "new_mode": 33188,
      "new_path": "gopls/internal/test/marker/testdata/codeaction/extract_variable-if.txt"
    },
    {
      "type": "modify",
      "old_id": "0a9cab949a5856c517020f628167ddd8c8bd57c1",
      "old_mode": 33188,
      "old_path": "gopls/internal/test/marker/testdata/codeaction/extract_variable-inexact.txt",
      "new_id": "1781b3ce6af65c6f20960a2cf49923777fbbbf92",
      "new_mode": 33188,
      "new_path": "gopls/internal/test/marker/testdata/codeaction/extract_variable-inexact.txt"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "b9166c6299d72073a136263ed3f18872a9fb2cbc",
      "new_mode": 33188,
      "new_path": "gopls/internal/test/marker/testdata/codeaction/extract_variable-toplevel.txt"
    },
    {
      "type": "modify",
      "old_id": "e6f0f8938485f89ddf1253e109a72b4361504a07",
      "old_mode": 33188,
      "old_path": "gopls/internal/test/marker/testdata/codeaction/extract_variable.txt",
      "new_id": "c14fb73297806df39b0449937ade9dd4f45ff696",
      "new_mode": 33188,
      "new_path": "gopls/internal/test/marker/testdata/codeaction/extract_variable.txt"
    },
    {
      "type": "modify",
      "old_id": "3ab9b2df0beaf301ab126434b5003c243d6380ec",
      "old_mode": 33188,
      "old_path": "gopls/internal/test/marker/testdata/codeaction/extract_variable_resolve.txt",
      "new_id": "2bf1803a7d8deba6a5f3807ecdc5262cdfa8776a",
      "new_mode": 33188,
      "new_path": "gopls/internal/test/marker/testdata/codeaction/extract_variable_resolve.txt"
    },
    {
      "type": "modify",
      "old_id": "4190f6d478dc014d8ca410fd0cd089169dcacda1",
      "old_mode": 33188,
      "old_path": "internal/analysisinternal/analysis.go",
      "new_id": "fe67b0fa27a69f17eb2e211c58d32ecf9d320460",
      "new_mode": 33188,
      "new_path": "internal/analysisinternal/analysis.go"
    }
  ]
}
