Skip to content

x/tools/gopls: typerefs: move BuildPackageGraph into tests #60598

@adonovan

Description

@adonovan

The BuildPackageGraph function, and many related ones, are used only from the test, though it is hard to deduce that (and it looks like production code). The reason is that this package was designed test-first, with instructions for how to productionize it; that has since been done.

We should move it all the test-only code into a _test.go file, for clarity.

Metadata

Metadata

Assignees

Labels

FrozenDueToAgegoplsIssues related to the Go language server, gopls.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions