Skip to content

Commit 63229bc

Browse files
adonovangopherbot
authored andcommitted
gopls/internal/analysis/gofix: register "alias" fact type
Fixes golang/go#71982 Change-Id: I29535d430e2fb9da0915a1d6ec99d4a3ade8e4e8 Reviewed-on: https://go-review.googlesource.com/c/tools/+/652975 Auto-Submit: Alan Donovan <[email protected]> Reviewed-by: Jonathan Amsterdam <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent d740adf commit 63229bc

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

gopls/internal/analysis/gofix/gofix.go

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,16 @@ import (
3030
var doc string
3131

3232
var Analyzer = &analysis.Analyzer{
33-
Name: "gofix",
34-
Doc: analysisinternal.MustExtractDoc(doc, "gofix"),
35-
URL: "https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/gofix",
36-
Run: run,
37-
FactTypes: []analysis.Fact{new(goFixInlineFuncFact), new(goFixInlineConstFact)},
38-
Requires: []*analysis.Analyzer{inspect.Analyzer},
33+
Name: "gofix",
34+
Doc: analysisinternal.MustExtractDoc(doc, "gofix"),
35+
URL: "https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/gofix",
36+
Run: run,
37+
FactTypes: []analysis.Fact{
38+
(*goFixInlineFuncFact)(nil),
39+
(*goFixInlineConstFact)(nil),
40+
(*goFixInlineAliasFact)(nil),
41+
},
42+
Requires: []*analysis.Analyzer{inspect.Analyzer},
3943
}
4044

4145
// analyzer holds the state for this analysis.

0 commit comments

Comments
 (0)