Categorygithub.com/gostaticanalysis/analysisutil
modulepackage
0.7.1
Repository: https://github.com/gostaticanalysis/analysisutil.git
Documentation: pkg.go.dev

# README

analysisutil

PkgGoDev

Utilities for x/tools/go/analysis package.

# Functions

BinOp returns binary operator values which are contained in the block b.
Called returns true when f is called in the instr.
CalledFrom checks whether receiver's method is called in an instruction which belogns to after i-th instructions, or in succsor blocks of b.
Field returns field of the struct type.
File finds *ast.File in pass.Files by pos.
HasField returns whether the struct has the field.
IfInstr returns *ssa.If which is contained in the block b.
ImplementsError return whether t implements error interface.
Imported returns true when the given pass imports the pkg.
InspectFuncs inspects functions.
InspectInstr inspects from i-th instruction of start block to succsessor blocks.
Interfaces returns a map of interfaces which are declared in the package.
IsGeneratedFile reports whether the file has been generated automatically.
LookupFromImports finds an object from import paths.
MethodOf returns a method which has given name in the type.
NotCalledIn checks whether receiver's method is called in a function.
ObjectOf returns types.Object by given name in the package.
Phi returns phi values which are contained in the block b.
RemoVendor removes vendoring information from import path.
ReportWithoutIgnore returns a report function which can set to (analysis.Pass).Report.
Returns returns a slice of *ssa.Return in the function.
Structs returns a map of structs which are declared in the package.
TypeOf returns types.Type by given name in the package.
No description provided by the author
Under returns the most bottom underlying type.
Used returns an instruction which uses the value in the instructions.

# Structs

CalledChecker checks a function is called.