File tree Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -244,17 +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 ) allPackageFacts () []analysis.PackageFact {
248
- out := make ([]analysis.PackageFact , 0 , len (act .packageFacts ))
249
- for key , fact := range act .packageFacts {
250
- out = append (out , analysis.PackageFact {
251
- Package : key .pkg ,
252
- Fact : fact ,
253
- })
254
- }
255
- return out
256
- }
257
-
258
247
func (act * action ) factType (fact analysis.Fact ) reflect.Type {
259
248
t := reflect .TypeOf (fact )
260
249
if t .Kind () != reflect .Ptr {
Original file line number Diff line number Diff line change 6
6
// FIXME add a commit hash.
7
7
8
8
package goanalysis
9
+
10
+ import "golang.org/x/tools/go/analysis"
11
+
12
+ // NOTE(ldez) no alteration.
13
+ func (act * action ) allPackageFacts () []analysis.PackageFact {
14
+ out := make ([]analysis.PackageFact , 0 , len (act .packageFacts ))
15
+ for key , fact := range act .packageFacts {
16
+ out = append (out , analysis.PackageFact {
17
+ Package : key .pkg ,
18
+ Fact : fact ,
19
+ })
20
+ }
21
+ return out
22
+ }
You can’t perform that action at this time.
0 commit comments