Skip to content

x/tools/go/analysis/passes/inline: publish //go:fix inline analyzer #75267

@adonovan

Description

@adonovan

Background: gopls has an analyzer that inlines calls to functions annotated with //go:fix inline directives. We would like to make this functionality available in go fix (see #71859).

Proposal: we propose to move (and rename) the x/tools/gopls/internal/gofix directory to x/tools/go/analysis/passes/inline

package inline // import "golang.org/x/tools/go/passes/inline"

var Analyzer *analyzer.Analyzer

Metadata

Metadata

Assignees

Labels

ProposalProposal-AcceptedToolProposalIssues describing a requested change to a Go tool or command-line program.

Type

No type

Projects

Status

Accepted

Relationships

None yet

Development

No branches or pull requests

Issue actions