Debian Codegraph @

go/ast/astutil/upstream.go

raw
1 package astutil
2
3 import (
4 "go/ast"
5 "go/token"
6 _ "unsafe"
7
8 "golang.org/x/tools/go/ast/astutil"
9 )
10
11 type Cursor = astutil.Cursor
12 type ApplyFunc = astutil.ApplyFunc
13
14 func Apply(root ast.Node, pre, post ApplyFunc) (result ast.Node) {
15 return astutil.Apply(root, pre, post)
16 }
17
18 func PathEnclosingInterval(root *ast.File, start, end token.Pos) (path []ast.Node, exact bool) {
19 return astutil.PathEnclosingInterval(root, start, end)
20 }