aboutsummaryrefslogtreecommitdiffhomepage
path: root/cgo/cgo_go122.go
blob: 7304aaa28ca21d4339d9b7a9c804b8f72bfe5673 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//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
	}
}