mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
53db436a7d
This is needed for the type checker, otherwise it doesn't know which Go version it should use for type checking.
18 lines
222 B
Go
18 lines
222 B
Go
//go:build go1.22
|
|
|
|
package cgo
|
|
|
|
// Code specifically for Go 1.22.
|
|
|
|
import (
|
|
"go/ast"
|
|
"go/token"
|
|
)
|
|
|
|
func init() {
|
|
setASTFileFields = func(f *ast.File, start, end token.Pos) {
|
|
f.FileStart = start
|
|
f.FileEnd = end
|
|
}
|
|
}
|