File tree 2 files changed +1
-7
lines changed
2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -46,9 +46,7 @@ func (v *View) FileSet() *token.FileSet {
46
46
}
47
47
48
48
func (v * View ) GetAnalysisCache () * source.AnalysisCache {
49
- if v .analysisCache == nil {
50
- v .analysisCache = source .NewAnalysisCache ()
51
- }
49
+ v .analysisCache = source .NewAnalysisCache ()
52
50
return v .analysisCache
53
51
}
54
52
Original file line number Diff line number Diff line change @@ -40,10 +40,6 @@ type analysisKey struct {
40
40
func (c * AnalysisCache ) analyze (pkgs []* packages.Package , analyzers []* analysis.Analyzer ) []* action {
41
41
// TODO(matloob): Every time but the first, this needs to re-construct
42
42
// the invalidated parts of the action graph, probably under a lock?
43
- // We'll take care of that later. For now, clear the entire cache!
44
- for k := range c .m {
45
- delete (c .m , k )
46
- }
47
43
48
44
// Construct the action graph.
49
45
var mkAction func (a * analysis.Analyzer , pkg * packages.Package ) * action
You can’t perform that action at this time.
0 commit comments