Documentation ¶
Index ¶
- type ApplicationInfo
- func (ai *ApplicationInfo) GetDefinition(id *ast.Ident) ast.Node
- func (ai *ApplicationInfo) GetEntryPointDecl() *ast.FuncDecl
- func (ai *ApplicationInfo) GetFile(nd ast.Node) *ast.File
- func (ai *ApplicationInfo) GetFuncDecl(id *ast.Ident) *ast.FuncDecl
- func (ai *ApplicationInfo) GetMethods(id *ast.Ident) []*ast.Ident
- func (ai *ApplicationInfo) GetPackage(nd ast.Node) *build.Package
- func (ai *ApplicationInfo) GetReferrings(nd ast.Node) []*ast.Ident
- func (ai *ApplicationInfo) HasUsedC(bp *build.Package) bool
- func (ai *ApplicationInfo) IsInit(nd ast.Node) bool
- func (ai *ApplicationInfo) IsMethod(nd ast.Node) bool
- func (ai *ApplicationInfo) IsUsed(nd ast.Node) bool
- func (ai *ApplicationInfo) Squash() (*SquashedApp, error)
- type PackageInfo
- type SquashedApp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationInfo ¶
type ApplicationInfo struct { PackageInfo // contains filtered or unexported fields }
func NewApplicationInfo ¶
func NewApplicationInfo(pi PackageInfo, entrypointName string) *ApplicationInfo
func (*ApplicationInfo) GetDefinition ¶
func (ai *ApplicationInfo) GetDefinition(id *ast.Ident) ast.Node
func (*ApplicationInfo) GetEntryPointDecl ¶
func (ai *ApplicationInfo) GetEntryPointDecl() *ast.FuncDecl
func (*ApplicationInfo) GetFuncDecl ¶
func (ai *ApplicationInfo) GetFuncDecl(id *ast.Ident) *ast.FuncDecl
func (*ApplicationInfo) GetMethods ¶
func (ai *ApplicationInfo) GetMethods(id *ast.Ident) []*ast.Ident
Returns methods of the given id if the id is the Name (*ast.Ident) of the *ast.FuncDecl
func (*ApplicationInfo) GetPackage ¶
func (ai *ApplicationInfo) GetPackage(nd ast.Node) *build.Package
func (*ApplicationInfo) GetReferrings ¶
func (ai *ApplicationInfo) GetReferrings(nd ast.Node) []*ast.Ident
func (*ApplicationInfo) IsUsed ¶
func (ai *ApplicationInfo) IsUsed(nd ast.Node) bool
IsUsed() returned whether the given nd is used in call graph started from the entrypoint.
func (*ApplicationInfo) Squash ¶
func (ai *ApplicationInfo) Squash() (*SquashedApp, error)
type PackageInfo ¶
type SquashedApp ¶
type SquashedApp struct {
// contains filtered or unexported fields
}
SquashedApp represents an application combined into a single file
Click to show internal directories.
Click to hide internal directories.