cgo_go122.go raw

   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  }
  18