Documentation
¶
Index ¶
- func DereferenceR(T types.Type) types.Type
- func FindPos(pkgs []*packages.Package, pos token.Pos) (*packages.Package, *ast.File)
- func IsUnderlyingNamedStruct(t types.Type) bool
- func NamedTypeMethodByName(t *types.Named, methodName string) *types.Func
- func SSAFunction(pkg *ssa.Package, funcName string) *ssa.Function
- func SSAMethod(prog *ssa.Program, pkg *types.Package, recv *types.Named, methodName string) *ssa.Function
- func TypeFunc2DeclarationWithFile(file *ast.File, f *types.Func) (*ast.FuncDecl, error)
- func TypeFunc2DeclarationWithPkg(pkg *packages.Package, f *types.Func) (*ast.FuncDecl, error)
- func TypeFunc2DeclarationWithPkgs(pkgs []*packages.Package, f *types.Func) (*ast.FuncDecl, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DereferenceR ¶
DereferenceR returns a pointer's element type; otherwise it returns T. If the element type is itself a pointer, DereferenceR will be applied recursively.
func IsUnderlyingNamedStruct ¶
func NamedTypeMethodByName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.