@@ -96,23 +96,22 @@ func (act *action) loadPersistedFacts() bool {
9696
9797 for _ , f := range facts {
9898 if f .Path == "" { // this is a package fact
99- key := packageFactKey {act .Package .Types , act .factType (f .Fact )}
99+ key := packageFactKey {pkg : act .Package .Types , typ : act .factType (f .Fact )}
100100 act .packageFacts [key ] = f .Fact
101101 continue
102102 }
103103 obj , err := objectpath .Object (act .Package .Types , objectpath .Path (f .Path ))
104104 if err != nil {
105- // Be lenient about these errors. For example, when
106- // analyzing io/ioutil from source, we may get a fact
107- // for methods on the devNull type, and objectpath
108- // will happily create a path for them. However, when
109- // we later load io/ioutil from export data, the path
110- // no longer resolves.
105+ // Be lenient about these errors.
106+ // For example, when analyzing io/ioutil from source,
107+ // we may get a fact for methods on the devNull type,
108+ // and objectpath will happily create a path for them.
109+ // However,
110+ // when we later load io/ioutil from export data,
111+ // the path no longer resolves.
111112 //
112113 // If an exported type embeds the unexported type,
113- // then (part of) the unexported type will become part
114- // of the type information and our path will resolve
115- // again.
114+ // then (part of) the unexported type will become part of the type information and our path will resolve again.
116115 continue
117116 }
118117 factKey := objectFactKey {obj , act .factType (f .Fact )}
0 commit comments