File tree Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -244,14 +244,6 @@ func (act *action) exportPackageFact(fact analysis.Fact) {
244
244
act .pkg .Fset .Position (act .pass .Files [0 ].Pos ()), act .pass .Pkg .Path (), fact )
245
245
}
246
246
247
- func (act * action ) factType (fact analysis.Fact ) reflect.Type {
248
- t := reflect .TypeOf (fact )
249
- if t .Kind () != reflect .Ptr {
250
- act .r .log .Fatalf ("invalid Fact type: got %T, want pointer" , t )
251
- }
252
- return t
253
- }
254
-
255
247
func (act * action ) markDepsForAnalyzingSource () {
256
248
// Horizontal deps (analyzer.Requires) must be loaded from source and analyzed before analyzing
257
249
// this action.
Original file line number Diff line number Diff line change 7
7
8
8
package goanalysis
9
9
10
- import "golang.org/x/tools/go/analysis"
10
+ import (
11
+ "reflect"
12
+
13
+ "golang.org/x/tools/go/analysis"
14
+ )
15
+
16
+ // NOTE(ldez) altered: add receiver to handle logs.
17
+ func (act * action ) factType (fact analysis.Fact ) reflect.Type {
18
+ t := reflect .TypeOf (fact )
19
+ if t .Kind () != reflect .Ptr {
20
+ act .r .log .Fatalf ("invalid Fact type: got %T, want pointer" , t )
21
+ }
22
+ return t
23
+ }
11
24
12
25
// NOTE(ldez) no alteration.
13
26
func (act * action ) allPackageFacts () []analysis.PackageFact {
You can’t perform that action at this time.
0 commit comments