github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/cgo/cgo_go122.go (about) 1 //go:build go1.22 2 3 package cgo 4 5 // Code specifically for Go 1.22. 6 7 import ( 8 "go/ast" 9 "go/token" 10 ) 11 12 func init() { 13 setASTFileFields = func(f *ast.File, start, end token.Pos) { 14 f.FileStart = start 15 f.FileEnd = end 16 } 17 }