mirror of https://github.com/tinygo-org/tinygo.git
wasmstm32webassemblymicrocontrollerarmavrspiwasiadafruitarduinocircuitplayground-expressgpioi2cllvmmicrobitnrf51nrf52nrf52840samd21tinygo
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
289 B
17 lines
289 B
//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)
|
|
}
|
|
}
|
|
|