Documentation ¶
Overview ¶
Package analysisutil defines various helper functions used by two or more packages beneath go/analysis.
Index ¶
- func Format(fset *token.FileSet, x ast.Expr) string
- func HasSideEffects(info *types.Info, e ast.Expr) bool
- func Imports(pkg *types.Package, path string) bool
- func LineStart(f *token.File, line int) token.Pos
- func ReadFile(fset *token.FileSet, filename string) ([]byte, *token.File, error)
- func Unparen(e ast.Expr) ast.Expr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasSideEffects ¶
HasSideEffects reports whether evaluation of e has side effects.
func LineStart ¶
LineStart returns the position of the start of the specified line within file f, or NoPos if there is no line of that number.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.