File: upstream.go

package info (click to toggle)
golang-honnef-go-tools 2023.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,784 kB
  • sloc: sh: 132; xml: 48; lisp: 30; makefile: 10; javascript: 1
file content (20 lines) | stat: -rw-r--r-- 430 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package astutil

import (
	"go/ast"
	"go/token"
	_ "unsafe"

	"golang.org/x/tools/go/ast/astutil"
)

type Cursor = astutil.Cursor
type ApplyFunc = astutil.ApplyFunc

func Apply(root ast.Node, pre, post ApplyFunc) (result ast.Node) {
	return astutil.Apply(root, pre, post)
}

func PathEnclosingInterval(root *ast.File, start, end token.Pos) (path []ast.Node, exact bool) {
	return astutil.PathEnclosingInterval(root, start, end)
}