typeutils

package
v0.0.0-...-364fa03 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2025 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DereferenceR

func DereferenceR(T types.Type) types.Type

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 FindPos

func FindPos(pkgs []*packages.Package, pos token.Pos) (*packages.Package, *ast.File)

func IsUnderlyingNamedStruct

func IsUnderlyingNamedStruct(t types.Type) bool

func NamedTypeMethodByName

func NamedTypeMethodByName(t *types.Named, methodName string) *types.Func

func SSAFunction

func SSAFunction(pkg *ssa.Package, funcName string) *ssa.Function

func SSAMethod

func SSAMethod(prog *ssa.Program, pkg *types.Package, recv *types.Named, methodName string) *ssa.Function

func TypeFunc2DeclarationWithFile

func TypeFunc2DeclarationWithFile(file *ast.File, f *types.Func) (*ast.FuncDecl, error)

func TypeFunc2DeclarationWithPkg

func TypeFunc2DeclarationWithPkg(pkg *packages.Package, f *types.Func) (*ast.FuncDecl, error)

func TypeFunc2DeclarationWithPkgs

func TypeFunc2DeclarationWithPkgs(pkgs []*packages.Package, f *types.Func) (*ast.FuncDecl, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL