...
Package analysisutil
import "cmd/vendor/golang.org/x/tools/go/analysis/passes/internal/analysisutil"
- Overview
- Index
Package analysisutil defines various helper functions
used by two or more packages beneath go/analysis.
In the call graph viewer below, each node
is a function belonging to this package
and its children are the functions it
calls—perhaps dynamically.
The root nodes are the entry points of the
package: functions that may be called from
outside the package.
There may be non-exported or anonymous
functions among them if they are called
dynamically from another package.
Click a node to visit that function's source code.
From there you can visit its callers by
clicking its declaring func
token.
Functions may be omitted if they were
determined to be unreachable in the
particular programs or tests that were
analyzed.
func Format(fset *token.FileSet, x ast.Expr) string
Format returns a string representation of the expression.
func HasSideEffects(info *types.Info, e ast.Expr) bool
HasSideEffects reports whether evaluation of e has side effects.
func LineStart(f *token.File, line int) token.Pos
LineStart returns the position of the start of the specified line
within file f, or NoPos if there is no line of that number.
func ReadFile(fset *token.FileSet, filename string) ([]byte, *token.File, error)
ReadFile reads a file and adds it to the FileSet
so that we can report errors against it using lineStart.
func Unparen(e ast.Expr) ast.Expr
Unparen returns e with any enclosing parentheses stripped.