Documentation ¶
Overview ¶
Package fn provides the Analyser interface for functions and supporting utils.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func FindConcrete ¶
FindConcrete finds the concrete version of a given ssa.Function by unwrapping the synthetic wrappers of fn.
Types ¶
type Analyser ¶
type Analyser interface { // EnterFunc analyses a Function. EnterFunc(fn *ssa.Function) // ExitFunc finishes analysing a Function. // It should be used for cleanup etc. ExitFunc(fn *ssa.Function) }
Analyser is an interface for Function analysis, handles function entry and exit.
type DoesNotImplError ¶
DoesNotImplError is the error when a supplied implementation Impl does not implement an interface Iface.
type MethNotFoundError ¶
type MethNotFoundError struct { Iface *types.Interface // Interface to look in. Meth *types.Func // Expected method signature. }
MethNotFoundError is the error when an interface Iface is implemented without method Meth.
func (MethNotFoundError) Error ¶
func (e MethNotFoundError) Error() string
type MethTypeError ¶
type MethTypeError struct { Iface *types.Interface // Interface to implement. Meth *types.Func // Method of the interface. Impl *types.Func // Implemented method. }
MethTypeError is the error when interface Iface with method Meth is implemented as Impl with a wrong type. See also go/types.MissingMethod.
func (MethTypeError) Error ¶
func (e MethTypeError) Error() string
type UnknownInvokeError ¶
func (UnknownInvokeError) Error ¶
func (e UnknownInvokeError) Error() string
Click to show internal directories.
Click to hide internal directories.