Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FuncInfo ¶
type FuncInfo struct {
HasDefer bool
// Nodes are "flattened" into a switch-case statement when we need to be able
// to jump into an arbitrary position in the code with a GOTO statement, or
// resume a goroutine after a blocking call unblocks.
Flattened map[ast.Node]bool
// Blocking indicates that either the AST node itself or its descendant may
// block goroutine execution (for example, a channel operation).
Blocking map[ast.Node]bool
// GotoLavel indicates a label referenced by a goto statement, rather than a
// named loop.
GotoLabel map[*types.Label]bool
// contains filtered or unexported fields
}
type Info ¶
type Info struct {
*types.Info
Pkg *types.Package
HasPointer map[*types.Var]bool
FuncDeclInfos map[*types.Func]*FuncInfo
FuncLitInfos map[*ast.FuncLit]*FuncInfo
InitFuncInfo *FuncInfo // Context for package variable initialization.
// contains filtered or unexported fields
}
func AnalyzePkg ¶
Click to show internal directories.
Click to hide internal directories.