aboutsummaryrefslogtreecommitdiffhomepage
path: root/loader/loader_go122.go
blob: 24d0606433a1e12595e52a1a1403f719722dd879 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//go:build go1.22

// types.Info.FileVersions was added in Go 1.22, so we can only initialize it
// when built with Go 1.22.

package loader

import (
	"go/ast"
	"go/types"
)

func init() {
	initFileVersions = func(info *types.Info) {
		info.FileVersions = make(map[*ast.File]string)
	}
}